| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?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.pay.mapper.PaymentMiniProgramConfigMapper">
- <resultMap type="PaymentMiniProgramConfig" id="PaymentMiniProgramConfigResult">
- <result property="id" column="id" />
- <result property="payType" column="pay_type" />
- <result property="appName" column="appname" />
- <result property="appid" column="appid" />
- <result property="appSecret" column="appsecret" />
- <result property="ybMerchantNo" column="yb_merchant_no" />
- <result property="ybKey" column="yb_key" />
- <result property="ybNotifyUrl" column="yb_notify_url" />
- <result property="tzhMerchantNo" column="tzh_merchant_no" />
- <result property="tzhAppsecret" column="tzh_appsecret" />
- <result property="tzhPrivateKey" column="tzh_private_key" />
- <result property="tzhPublicKey" column="tzh_public_key" />
- <result property="tzhAppkey" column="tzh_appkey" />
- <result property="tzhPayNotifyUrl" column="tzh_pay_notify_url" />
- <result property="tzhRefundNotifyUrl" column="tzh_refund_notify_url" />
- <result property="tzhSplitNotifyUrl" column="tzh_split_notify_url" />
- <result property="wxMerchantNo" column="wx_merchant_no" />
- <result property="wxKey" column="wx_key" />
- <result property="hfProductNo" column="hf_product_no" />
- <result property="hfSystemNo" column="hf_system_no" />
- <result property="hfMerchantNo" column="hf_merchant_no" />
- <result property="hfPrivateKey" column="hf_private_key" />
- <result property="hfPublicKey" column="hf_public_key" />
- <result property="hfPayNotifyUrl" column="hf_pay_notify_url" />
- <result property="hfLargePayNotifyUrl" column="hf_large_pay_notify_url" />
- <result property="hfRefundNotifyUrl" column="hf_refund_notify_url" />
- <result property="hfLargeRefundNotifyUrl" column="hf_large_refund_notify_url" />
- <result property="status" column="status" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- </resultMap>
- <sql id="selectPaymentMiniProgramConfigVo">
- select id, pay_type, appid,appname,appsecret, yb_merchant_no, yb_key, yb_notify_url, tzh_merchant_no, tzh_appsecret, tzh_private_key, tzh_public_key, tzh_appkey, tzh_pay_notify_url, tzh_refund_notify_url, tzh_split_notify_url, wx_merchant_no, wx_key, hf_product_no, hf_system_no, hf_merchant_no, hf_private_key, hf_public_key, hf_pay_notify_url, hf_large_pay_notify_url, hf_refund_notify_url, hf_large_refund_notify_url, status, create_time, update_time from payment_mini_program_config
- </sql>
- <select id="selectPaymentMiniProgramConfigList" parameterType="PaymentMiniProgramConfig" resultMap="PaymentMiniProgramConfigResult">
- <include refid="selectPaymentMiniProgramConfigVo"/>
- <where>
- <if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
- <if test="appid != null and appid != ''"> and appid = #{appid}</if>
- <if test="ybMerchantNo != null and ybMerchantNo != ''"> and yb_merchant_no = #{ybMerchantNo}</if>
- <if test="ybKey != null and ybKey != ''"> and yb_key = #{ybKey}</if>
- <if test="ybNotifyUrl != null and ybNotifyUrl != ''"> and yb_notify_url = #{ybNotifyUrl}</if>
- <if test="tzhMerchantNo != null and tzhMerchantNo != ''"> and tzh_merchant_no = #{tzhMerchantNo}</if>
- <if test="tzhAppsecret != null and tzhAppsecret != ''"> and tzh_appsecret = #{tzhAppsecret}</if>
- <if test="tzhPrivateKey != null and tzhPrivateKey != ''"> and tzh_private_key = #{tzhPrivateKey}</if>
- <if test="tzhPublicKey != null and tzhPublicKey != ''"> and tzh_public_key = #{tzhPublicKey}</if>
- <if test="tzhAppkey != null and tzhAppkey != ''"> and tzh_appkey = #{tzhAppkey}</if>
- <if test="tzhPayNotifyUrl != null and tzhPayNotifyUrl != ''"> and tzh_pay_notify_url = #{tzhPayNotifyUrl}</if>
- <if test="tzhRefundNotifyUrl != null and tzhRefundNotifyUrl != ''"> and tzh_refund_notify_url = #{tzhRefundNotifyUrl}</if>
- <if test="tzhSplitNotifyUrl != null and tzhSplitNotifyUrl != ''"> and tzh_split_notify_url = #{tzhSplitNotifyUrl}</if>
- <if test="wxMerchantNo != null and wxMerchantNo != ''"> and wx_merchant_no = #{wxMerchantNo}</if>
- <if test="wxKey != null and wxKey != ''"> and wx_key = #{wxKey}</if>
- <if test="hfProductNo != null and hfProductNo != ''"> and hf_product_no = #{hfProductNo}</if>
- <if test="hfSystemNo != null and hfSystemNo != ''"> and hf_system_no = #{hfSystemNo}</if>
- <if test="hfMerchantNo != null and hfMerchantNo != ''"> and hf_merchant_no = #{hfMerchantNo}</if>
- <if test="hfPrivateKey != null and hfPrivateKey != ''"> and hf_private_key = #{hfPrivateKey}</if>
- <if test="hfPublicKey != null and hfPublicKey != ''"> and hf_public_key = #{hfPublicKey}</if>
- <if test="hfPayNotifyUrl != null and hfPayNotifyUrl != ''"> and hf_pay_notify_url = #{hfPayNotifyUrl}</if>
- <if test="hfLargePayNotifyUrl != null and hfLargePayNotifyUrl != ''"> and hf_large_pay_notify_url = #{hfLargePayNotifyUrl}</if>
- <if test="hfRefundNotifyUrl != null and hfRefundNotifyUrl != ''"> and hf_refund_notify_url = #{hfRefundNotifyUrl}</if>
- <if test="hfLargeRefundNotifyUrl != null and hfLargeRefundNotifyUrl != ''"> and hf_large_refund_notify_url = #{hfLargeRefundNotifyUrl}</if>
- <if test="status != null "> and status = #{status}</if>
- </where>
- </select>
- <select id="selectPaymentMiniProgramConfigById" parameterType="String" resultMap="PaymentMiniProgramConfigResult">
- <include refid="selectPaymentMiniProgramConfigVo"/>
- where id = #{id}
- </select>
- <select id="selectPaymentConfigByAppId" resultType="com.fs.pay.domain.PaymentMiniProgramConfig">
- select * from payment_mini_program_config where appid=#{appid} limit 1
- </select>
- <insert id="insertPaymentMiniProgramConfig" parameterType="PaymentMiniProgramConfig" useGeneratedKeys="true" keyProperty="id">
- insert into payment_mini_program_config
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="payType != null and payType != ''">pay_type,</if>
- <if test="appName != null and appName != ''">appname,</if>
- <if test="appid != null and appid != ''">appid,</if>
- <if test="appSecret != null and appSecret != ''">appsecret,</if>
- <if test="ybMerchantNo != null">yb_merchant_no,</if>
- <if test="ybKey != null">yb_key,</if>
- <if test="ybNotifyUrl != null">yb_notify_url,</if>
- <if test="tzhMerchantNo != null">tzh_merchant_no,</if>
- <if test="tzhAppsecret != null">tzh_appsecret,</if>
- <if test="tzhPrivateKey != null">tzh_private_key,</if>
- <if test="tzhPublicKey != null">tzh_public_key,</if>
- <if test="tzhAppkey != null">tzh_appkey,</if>
- <if test="tzhPayNotifyUrl != null">tzh_pay_notify_url,</if>
- <if test="tzhRefundNotifyUrl != null">tzh_refund_notify_url,</if>
- <if test="tzhSplitNotifyUrl != null">tzh_split_notify_url,</if>
- <if test="wxMerchantNo != null">wx_merchant_no,</if>
- <if test="wxKey != null">wx_key,</if>
- <if test="hfProductNo != null">hf_product_no,</if>
- <if test="hfSystemNo != null">hf_system_no,</if>
- <if test="hfMerchantNo != null">hf_merchant_no,</if>
- <if test="hfPrivateKey != null">hf_private_key,</if>
- <if test="hfPublicKey != null">hf_public_key,</if>
- <if test="hfPayNotifyUrl != null">hf_pay_notify_url,</if>
- <if test="hfLargePayNotifyUrl != null">hf_large_pay_notify_url,</if>
- <if test="hfRefundNotifyUrl != null">hf_refund_notify_url,</if>
- <if test="hfLargeRefundNotifyUrl != null">hf_large_refund_notify_url,</if>
- <if test="status != null">status,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateTime != null">update_time,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="payType != null and payType != ''">#{payType},</if>
- <if test="appName != null and appName != ''">#{appName},</if>
- <if test="appid != null and appid != ''">#{appid},</if>
- <if test="appSecret != null and appSecret != ''">#{appSecret},</if>
- <if test="ybMerchantNo != null">#{ybMerchantNo},</if>
- <if test="ybKey != null">#{ybKey},</if>
- <if test="ybNotifyUrl != null">#{ybNotifyUrl},</if>
- <if test="tzhMerchantNo != null">#{tzhMerchantNo},</if>
- <if test="tzhAppsecret != null">#{tzhAppsecret},</if>
- <if test="tzhPrivateKey != null">#{tzhPrivateKey},</if>
- <if test="tzhPublicKey != null">#{tzhPublicKey},</if>
- <if test="tzhAppkey != null">#{tzhAppkey},</if>
- <if test="tzhPayNotifyUrl != null">#{tzhPayNotifyUrl},</if>
- <if test="tzhRefundNotifyUrl != null">#{tzhRefundNotifyUrl},</if>
- <if test="tzhSplitNotifyUrl != null">#{tzhSplitNotifyUrl},</if>
- <if test="wxMerchantNo != null">#{wxMerchantNo},</if>
- <if test="wxKey != null">#{wxKey},</if>
- <if test="hfProductNo != null">#{hfProductNo},</if>
- <if test="hfSystemNo != null">#{hfSystemNo},</if>
- <if test="hfMerchantNo != null">#{hfMerchantNo},</if>
- <if test="hfPrivateKey != null">#{hfPrivateKey},</if>
- <if test="hfPublicKey != null">#{hfPublicKey},</if>
- <if test="hfPayNotifyUrl != null">#{hfPayNotifyUrl},</if>
- <if test="hfLargePayNotifyUrl != null">#{hfLargePayNotifyUrl},</if>
- <if test="hfRefundNotifyUrl != null">#{hfRefundNotifyUrl},</if>
- <if test="hfLargeRefundNotifyUrl != null">#{hfLargeRefundNotifyUrl},</if>
- <if test="status != null">#{status},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateTime != null">#{updateTime},</if>
- </trim>
- </insert>
- <update id="updatePaymentMiniProgramConfig" parameterType="PaymentMiniProgramConfig">
- update payment_mini_program_config
- <trim prefix="SET" suffixOverrides=",">
- <if test="payType != null and payType != ''">pay_type = #{payType},</if>
- <if test="appName != null and appName != ''">appname = #{appName},</if>
- <if test="appid != null and appid != ''">appid = #{appid},</if>
- <if test="appSecret != null and appSecret != ''">appsecret = #{appSecret},</if>
- <if test="ybMerchantNo != null">yb_merchant_no = #{ybMerchantNo},</if>
- <if test="ybKey != null">yb_key = #{ybKey},</if>
- <if test="ybNotifyUrl != null">yb_notify_url = #{ybNotifyUrl},</if>
- <if test="tzhMerchantNo != null">tzh_merchant_no = #{tzhMerchantNo},</if>
- <if test="tzhAppsecret != null">tzh_appsecret = #{tzhAppsecret},</if>
- <if test="tzhPrivateKey != null">tzh_private_key = #{tzhPrivateKey},</if>
- <if test="tzhPublicKey != null">tzh_public_key = #{tzhPublicKey},</if>
- <if test="tzhAppkey != null">tzh_appkey = #{tzhAppkey},</if>
- <if test="tzhPayNotifyUrl != null">tzh_pay_notify_url = #{tzhPayNotifyUrl},</if>
- <if test="tzhRefundNotifyUrl != null">tzh_refund_notify_url = #{tzhRefundNotifyUrl},</if>
- <if test="tzhSplitNotifyUrl != null">tzh_split_notify_url = #{tzhSplitNotifyUrl},</if>
- <if test="wxMerchantNo != null">wx_merchant_no = #{wxMerchantNo},</if>
- <if test="wxKey != null">wx_key = #{wxKey},</if>
- <if test="hfProductNo != null">hf_product_no = #{hfProductNo},</if>
- <if test="hfSystemNo != null">hf_system_no = #{hfSystemNo},</if>
- <if test="hfMerchantNo != null">hf_merchant_no = #{hfMerchantNo},</if>
- <if test="hfPrivateKey != null">hf_private_key = #{hfPrivateKey},</if>
- <if test="hfPublicKey != null">hf_public_key = #{hfPublicKey},</if>
- <if test="hfPayNotifyUrl != null">hf_pay_notify_url = #{hfPayNotifyUrl},</if>
- <if test="hfLargePayNotifyUrl != null">hf_large_pay_notify_url = #{hfLargePayNotifyUrl},</if>
- <if test="hfRefundNotifyUrl != null">hf_refund_notify_url = #{hfRefundNotifyUrl},</if>
- <if test="hfLargeRefundNotifyUrl != null">hf_large_refund_notify_url = #{hfLargeRefundNotifyUrl},</if>
- <if test="status != null">status = #{status},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deletePaymentMiniProgramConfigById" parameterType="String">
- delete from payment_mini_program_config where id = #{id}
- </delete>
- <delete id="deletePaymentMiniProgramConfigByIds" parameterType="String">
- delete from payment_mini_program_config where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|