|
@@ -0,0 +1,111 @@
|
|
|
+<?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.FsHfpayConfigMapper">
|
|
|
+
|
|
|
+ <resultMap type="FsHfpayConfig" id="FsHfpayConfigResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
+ <result property="hfProductId" column="hf_product_id" />
|
|
|
+ <result property="hfSysId" column="hf_sys_id" />
|
|
|
+ <result property="huifuId" column="huifu_id" />
|
|
|
+ <result property="hfPayNotifyUrl" column="hf_pay_notify_url" />
|
|
|
+ <result property="hfPayOnlineNotifyUrl" column="hf_pay_online_notify_url" />
|
|
|
+ <result property="hfRefundNotifyUrl" column="hf_refund_notify_url" />
|
|
|
+ <result property="hfOnlineRefundNotifyUrl" column="hf_online_refund_notify_url" />
|
|
|
+ <result property="hfRsaPrivateKey" column="hf_rsa_private_key" />
|
|
|
+ <result property="hfRsaPublicKey" column="hf_rsa_public_key" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectFsHfpayConfigVo">
|
|
|
+ select id, app_id, hf_product_id, hf_sys_id, huifu_id, hf_pay_notify_url, hf_pay_online_notify_url, hf_refund_notify_url, hf_online_refund_notify_url, hf_rsa_private_key, hf_rsa_public_key, create_time, update_time from fs_hfpay_config
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectFsHfpayConfigList" parameterType="FsHfpayConfig" resultMap="FsHfpayConfigResult">
|
|
|
+ <include refid="selectFsHfpayConfigVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="appId != null and appId != ''"> and app_id = #{appId}</if>
|
|
|
+ <if test="hfProductId != null and hfProductId != ''"> and hf_product_id = #{hfProductId}</if>
|
|
|
+ <if test="hfSysId != null and hfSysId != ''"> and hf_sys_id = #{hfSysId}</if>
|
|
|
+ <if test="huifuId != null and huifuId != ''"> and huifu_id = #{huifuId}</if>
|
|
|
+ <if test="hfPayNotifyUrl != null and hfPayNotifyUrl != ''"> and hf_pay_notify_url = #{hfPayNotifyUrl}</if>
|
|
|
+ <if test="hfPayOnlineNotifyUrl != null and hfPayOnlineNotifyUrl != ''"> and hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl}</if>
|
|
|
+ <if test="hfRefundNotifyUrl != null and hfRefundNotifyUrl != ''"> and hf_refund_notify_url = #{hfRefundNotifyUrl}</if>
|
|
|
+ <if test="hfOnlineRefundNotifyUrl != null and hfOnlineRefundNotifyUrl != ''"> and hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl}</if>
|
|
|
+ <if test="hfRsaPrivateKey != null and hfRsaPrivateKey != ''"> and hf_rsa_private_key = #{hfRsaPrivateKey}</if>
|
|
|
+ <if test="hfRsaPublicKey != null and hfRsaPublicKey != ''"> and hf_rsa_public_key = #{hfRsaPublicKey}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectFsHfpayConfigById" parameterType="Long" resultMap="FsHfpayConfigResult">
|
|
|
+ <include refid="selectFsHfpayConfigVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertFsHfpayConfig" parameterType="FsHfpayConfig">
|
|
|
+ insert into fs_hfpay_config
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
+ <if test="hfProductId != null">hf_product_id,</if>
|
|
|
+ <if test="hfSysId != null">hf_sys_id,</if>
|
|
|
+ <if test="huifuId != null">huifu_id,</if>
|
|
|
+ <if test="hfPayNotifyUrl != null">hf_pay_notify_url,</if>
|
|
|
+ <if test="hfPayOnlineNotifyUrl != null">hf_pay_online_notify_url,</if>
|
|
|
+ <if test="hfRefundNotifyUrl != null">hf_refund_notify_url,</if>
|
|
|
+ <if test="hfOnlineRefundNotifyUrl != null">hf_online_refund_notify_url,</if>
|
|
|
+ <if test="hfRsaPrivateKey != null">hf_rsa_private_key,</if>
|
|
|
+ <if test="hfRsaPublicKey != null">hf_rsa_public_key,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
+ <if test="hfProductId != null">#{hfProductId},</if>
|
|
|
+ <if test="hfSysId != null">#{hfSysId},</if>
|
|
|
+ <if test="huifuId != null">#{huifuId},</if>
|
|
|
+ <if test="hfPayNotifyUrl != null">#{hfPayNotifyUrl},</if>
|
|
|
+ <if test="hfPayOnlineNotifyUrl != null">#{hfPayOnlineNotifyUrl},</if>
|
|
|
+ <if test="hfRefundNotifyUrl != null">#{hfRefundNotifyUrl},</if>
|
|
|
+ <if test="hfOnlineRefundNotifyUrl != null">#{hfOnlineRefundNotifyUrl},</if>
|
|
|
+ <if test="hfRsaPrivateKey != null">#{hfRsaPrivateKey},</if>
|
|
|
+ <if test="hfRsaPublicKey != null">#{hfRsaPublicKey},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateFsHfpayConfig" parameterType="FsHfpayConfig">
|
|
|
+ update fs_hfpay_config
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
+ <if test="hfProductId != null">hf_product_id = #{hfProductId},</if>
|
|
|
+ <if test="hfSysId != null">hf_sys_id = #{hfSysId},</if>
|
|
|
+ <if test="huifuId != null">huifu_id = #{huifuId},</if>
|
|
|
+ <if test="hfPayNotifyUrl != null">hf_pay_notify_url = #{hfPayNotifyUrl},</if>
|
|
|
+ <if test="hfPayOnlineNotifyUrl != null">hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl},</if>
|
|
|
+ <if test="hfRefundNotifyUrl != null">hf_refund_notify_url = #{hfRefundNotifyUrl},</if>
|
|
|
+ <if test="hfOnlineRefundNotifyUrl != null">hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl},</if>
|
|
|
+ <if test="hfRsaPrivateKey != null">hf_rsa_private_key = #{hfRsaPrivateKey},</if>
|
|
|
+ <if test="hfRsaPublicKey != null">hf_rsa_public_key = #{hfRsaPublicKey},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteFsHfpayConfigById" parameterType="Long">
|
|
|
+ delete from fs_hfpay_config where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteFsHfpayConfigByIds" parameterType="String">
|
|
|
+ delete from fs_hfpay_config where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|