FsHfpayConfigMapper.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.fs.his.mapper.FsHfpayConfigMapper">
  6. <resultMap type="FsHfpayConfig" id="FsHfpayConfigResult">
  7. <result property="id" column="id" />
  8. <result property="appId" column="app_id" />
  9. <result property="hfProductId" column="hf_product_id" />
  10. <result property="hfSysId" column="hf_sys_id" />
  11. <result property="huifuId" column="huifu_id" />
  12. <result property="hfPayNotifyUrl" column="hf_pay_notify_url" />
  13. <result property="hfPayOnlineNotifyUrl" column="hf_pay_online_notify_url" />
  14. <result property="hfRefundNotifyUrl" column="hf_refund_notify_url" />
  15. <result property="hfOnlineRefundNotifyUrl" column="hf_online_refund_notify_url" />
  16. <result property="hfRsaPrivateKey" column="hf_rsa_private_key" />
  17. <result property="hfRsaPublicKey" column="hf_rsa_public_key" />
  18. <result property="createTime" column="create_time" />
  19. <result property="updateTime" column="update_time" />
  20. </resultMap>
  21. <sql id="selectFsHfpayConfigVo">
  22. 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
  23. </sql>
  24. <select id="selectFsHfpayConfigList" parameterType="FsHfpayConfig" resultMap="FsHfpayConfigResult">
  25. <include refid="selectFsHfpayConfigVo"/>
  26. <where>
  27. <if test="appId != null and appId != ''"> and app_id = #{appId}</if>
  28. <if test="hfProductId != null and hfProductId != ''"> and hf_product_id = #{hfProductId}</if>
  29. <if test="hfSysId != null and hfSysId != ''"> and hf_sys_id = #{hfSysId}</if>
  30. <if test="huifuId != null and huifuId != ''"> and huifu_id = #{huifuId}</if>
  31. <if test="hfPayNotifyUrl != null and hfPayNotifyUrl != ''"> and hf_pay_notify_url = #{hfPayNotifyUrl}</if>
  32. <if test="hfPayOnlineNotifyUrl != null and hfPayOnlineNotifyUrl != ''"> and hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl}</if>
  33. <if test="hfRefundNotifyUrl != null and hfRefundNotifyUrl != ''"> and hf_refund_notify_url = #{hfRefundNotifyUrl}</if>
  34. <if test="hfOnlineRefundNotifyUrl != null and hfOnlineRefundNotifyUrl != ''"> and hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl}</if>
  35. <if test="hfRsaPrivateKey != null and hfRsaPrivateKey != ''"> and hf_rsa_private_key = #{hfRsaPrivateKey}</if>
  36. <if test="hfRsaPublicKey != null and hfRsaPublicKey != ''"> and hf_rsa_public_key = #{hfRsaPublicKey}</if>
  37. </where>
  38. </select>
  39. <select id="selectFsHfpayConfigById" parameterType="Long" resultMap="FsHfpayConfigResult">
  40. <include refid="selectFsHfpayConfigVo"/>
  41. where id = #{id}
  42. </select>
  43. <insert id="insertFsHfpayConfig" parameterType="FsHfpayConfig">
  44. insert into fs_hfpay_config
  45. <trim prefix="(" suffix=")" suffixOverrides=",">
  46. <if test="id != null">id,</if>
  47. <if test="appId != null">app_id,</if>
  48. <if test="hfProductId != null">hf_product_id,</if>
  49. <if test="hfSysId != null">hf_sys_id,</if>
  50. <if test="huifuId != null">huifu_id,</if>
  51. <if test="hfPayNotifyUrl != null">hf_pay_notify_url,</if>
  52. <if test="hfPayOnlineNotifyUrl != null">hf_pay_online_notify_url,</if>
  53. <if test="hfRefundNotifyUrl != null">hf_refund_notify_url,</if>
  54. <if test="hfOnlineRefundNotifyUrl != null">hf_online_refund_notify_url,</if>
  55. <if test="hfRsaPrivateKey != null">hf_rsa_private_key,</if>
  56. <if test="hfRsaPublicKey != null">hf_rsa_public_key,</if>
  57. <if test="createTime != null">create_time,</if>
  58. <if test="updateTime != null">update_time,</if>
  59. </trim>
  60. <trim prefix="values (" suffix=")" suffixOverrides=",">
  61. <if test="id != null">#{id},</if>
  62. <if test="appId != null">#{appId},</if>
  63. <if test="hfProductId != null">#{hfProductId},</if>
  64. <if test="hfSysId != null">#{hfSysId},</if>
  65. <if test="huifuId != null">#{huifuId},</if>
  66. <if test="hfPayNotifyUrl != null">#{hfPayNotifyUrl},</if>
  67. <if test="hfPayOnlineNotifyUrl != null">#{hfPayOnlineNotifyUrl},</if>
  68. <if test="hfRefundNotifyUrl != null">#{hfRefundNotifyUrl},</if>
  69. <if test="hfOnlineRefundNotifyUrl != null">#{hfOnlineRefundNotifyUrl},</if>
  70. <if test="hfRsaPrivateKey != null">#{hfRsaPrivateKey},</if>
  71. <if test="hfRsaPublicKey != null">#{hfRsaPublicKey},</if>
  72. <if test="createTime != null">#{createTime},</if>
  73. <if test="updateTime != null">#{updateTime},</if>
  74. </trim>
  75. </insert>
  76. <update id="updateFsHfpayConfig" parameterType="FsHfpayConfig">
  77. update fs_hfpay_config
  78. <trim prefix="SET" suffixOverrides=",">
  79. <if test="appId != null">app_id = #{appId},</if>
  80. <if test="hfProductId != null">hf_product_id = #{hfProductId},</if>
  81. <if test="hfSysId != null">hf_sys_id = #{hfSysId},</if>
  82. <if test="huifuId != null">huifu_id = #{huifuId},</if>
  83. <if test="hfPayNotifyUrl != null">hf_pay_notify_url = #{hfPayNotifyUrl},</if>
  84. <if test="hfPayOnlineNotifyUrl != null">hf_pay_online_notify_url = #{hfPayOnlineNotifyUrl},</if>
  85. <if test="hfRefundNotifyUrl != null">hf_refund_notify_url = #{hfRefundNotifyUrl},</if>
  86. <if test="hfOnlineRefundNotifyUrl != null">hf_online_refund_notify_url = #{hfOnlineRefundNotifyUrl},</if>
  87. <if test="hfRsaPrivateKey != null">hf_rsa_private_key = #{hfRsaPrivateKey},</if>
  88. <if test="hfRsaPublicKey != null">hf_rsa_public_key = #{hfRsaPublicKey},</if>
  89. <if test="createTime != null">create_time = #{createTime},</if>
  90. <if test="updateTime != null">update_time = #{updateTime},</if>
  91. </trim>
  92. where id = #{id}
  93. </update>
  94. <delete id="deleteFsHfpayConfigById" parameterType="Long">
  95. delete from fs_hfpay_config where id = #{id}
  96. </delete>
  97. <delete id="deleteFsHfpayConfigByIds" parameterType="String">
  98. delete from fs_hfpay_config where id in
  99. <foreach item="id" collection="array" open="(" separator="," close=")">
  100. #{id}
  101. </foreach>
  102. </delete>
  103. </mapper>