|
|
@@ -0,0 +1,118 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.fs.his.mapper.SysRedpacketConfigMoreMapper">
|
|
|
+
|
|
|
+ <resultMap type="SysRedpacketConfigMore" id="SysRedpacketConfigMoreResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="isNew" column="is_new" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
+ <result property="miniappId" column="miniapp_id" />
|
|
|
+ <result property="mchId" column="mch_id" />
|
|
|
+ <result property="mchKey" column="mch_key" />
|
|
|
+ <result property="keyPath" column="key_path" />
|
|
|
+ <result property="privateKeyPath" column="private_key_path" />
|
|
|
+ <result property="privateCertPath" column="private_cert_path" />
|
|
|
+ <result property="apiV3Key" column="api_v3_key" />
|
|
|
+ <result property="publicKeyId" column="public_key_id" />
|
|
|
+ <result property="publicKeyPath" column="public_key_path" />
|
|
|
+ <result property="notifyUrl" column="notify_url" />
|
|
|
+ <result property="notifyUrlScrm" column="notify_url_scrm" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectSysRedpacketConfigMoreVo">
|
|
|
+ select id, is_new, app_id, miniapp_id, mch_id, mch_key, key_path, private_key_path, private_cert_path, api_v3_key, public_key_id, public_key_path, notify_url, notify_url_scrm from sys_redpacket_config_more
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectSysRedpacketConfigMoreList" parameterType="SysRedpacketConfigMore" resultMap="SysRedpacketConfigMoreResult">
|
|
|
+ <include refid="selectSysRedpacketConfigMoreVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="isNew != null "> and is_new = #{isNew}</if>
|
|
|
+ <if test="appId != null and appId != ''"> and app_id = #{appId}</if>
|
|
|
+ <if test="miniappId != null and miniappId != ''"> and miniapp_id = #{miniappId}</if>
|
|
|
+ <if test="mchId != null and mchId != ''"> and mch_id = #{mchId}</if>
|
|
|
+ <if test="mchKey != null and mchKey != ''"> and mch_key = #{mchKey}</if>
|
|
|
+ <if test="keyPath != null and keyPath != ''"> and key_path = #{keyPath}</if>
|
|
|
+ <if test="privateKeyPath != null and privateKeyPath != ''"> and private_key_path = #{privateKeyPath}</if>
|
|
|
+ <if test="privateCertPath != null and privateCertPath != ''"> and private_cert_path = #{privateCertPath}</if>
|
|
|
+ <if test="apiV3Key != null and apiV3Key != ''"> and api_v3_key = #{apiV3Key}</if>
|
|
|
+ <if test="publicKeyId != null and publicKeyId != ''"> and public_key_id = #{publicKeyId}</if>
|
|
|
+ <if test="publicKeyPath != null and publicKeyPath != ''"> and public_key_path = #{publicKeyPath}</if>
|
|
|
+ <if test="notifyUrl != null and notifyUrl != ''"> and notify_url = #{notifyUrl}</if>
|
|
|
+ <if test="notifyUrlScrm != null and notifyUrlScrm != ''"> and notify_url_scrm = #{notifyUrlScrm}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectSysRedpacketConfigMoreById" parameterType="Long" resultMap="SysRedpacketConfigMoreResult">
|
|
|
+ <include refid="selectSysRedpacketConfigMoreVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertSysRedpacketConfigMore" parameterType="SysRedpacketConfigMore">
|
|
|
+ insert into sys_redpacket_config_more
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="isNew != null">is_new,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
+ <if test="miniappId != null">miniapp_id,</if>
|
|
|
+ <if test="mchId != null">mch_id,</if>
|
|
|
+ <if test="mchKey != null">mch_key,</if>
|
|
|
+ <if test="keyPath != null">key_path,</if>
|
|
|
+ <if test="privateKeyPath != null">private_key_path,</if>
|
|
|
+ <if test="privateCertPath != null">private_cert_path,</if>
|
|
|
+ <if test="apiV3Key != null">api_v3_key,</if>
|
|
|
+ <if test="publicKeyId != null">public_key_id,</if>
|
|
|
+ <if test="publicKeyPath != null">public_key_path,</if>
|
|
|
+ <if test="notifyUrl != null">notify_url,</if>
|
|
|
+ <if test="notifyUrlScrm != null">notify_url_scrm,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="isNew != null">#{isNew},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
+ <if test="miniappId != null">#{miniappId},</if>
|
|
|
+ <if test="mchId != null">#{mchId},</if>
|
|
|
+ <if test="mchKey != null">#{mchKey},</if>
|
|
|
+ <if test="keyPath != null">#{keyPath},</if>
|
|
|
+ <if test="privateKeyPath != null">#{privateKeyPath},</if>
|
|
|
+ <if test="privateCertPath != null">#{privateCertPath},</if>
|
|
|
+ <if test="apiV3Key != null">#{apiV3Key},</if>
|
|
|
+ <if test="publicKeyId != null">#{publicKeyId},</if>
|
|
|
+ <if test="publicKeyPath != null">#{publicKeyPath},</if>
|
|
|
+ <if test="notifyUrl != null">#{notifyUrl},</if>
|
|
|
+ <if test="notifyUrlScrm != null">#{notifyUrlScrm},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateSysRedpacketConfigMore" parameterType="SysRedpacketConfigMore">
|
|
|
+ update sys_redpacket_config_more
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="isNew != null">is_new = #{isNew},</if>
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
+ <if test="miniappId != null">miniapp_id = #{miniappId},</if>
|
|
|
+ <if test="mchId != null">mch_id = #{mchId},</if>
|
|
|
+ <if test="mchKey != null">mch_key = #{mchKey},</if>
|
|
|
+ <if test="keyPath != null">key_path = #{keyPath},</if>
|
|
|
+ <if test="privateKeyPath != null">private_key_path = #{privateKeyPath},</if>
|
|
|
+ <if test="privateCertPath != null">private_cert_path = #{privateCertPath},</if>
|
|
|
+ <if test="apiV3Key != null">api_v3_key = #{apiV3Key},</if>
|
|
|
+ <if test="publicKeyId != null">public_key_id = #{publicKeyId},</if>
|
|
|
+ <if test="publicKeyPath != null">public_key_path = #{publicKeyPath},</if>
|
|
|
+ <if test="notifyUrl != null">notify_url = #{notifyUrl},</if>
|
|
|
+ <if test="notifyUrlScrm != null">notify_url_scrm = #{notifyUrlScrm},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteSysRedpacketConfigMoreById" parameterType="Long">
|
|
|
+ delete from sys_redpacket_config_more where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteSysRedpacketConfigMoreByIds" parameterType="String">
|
|
|
+ delete from sys_redpacket_config_more where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|