后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WxPayAccountMapper.xml 4.9 KiB

пре 2 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.iformall.mapper.WxPayAccountMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxPayAccount">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
  8. <result column="mch_id" jdbcType="VARCHAR" property="mchId"/>
  9. <result column="sub_mch_id" jdbcType="VARCHAR" property="subMchId"/>
  10. <result column="sub_app_id" jdbcType="VARCHAR" property="subAppId"/>
  11. <result column="api_key" jdbcType="VARCHAR" property="apiKey"/>
  12. <result column="cert_path" jdbcType="VARCHAR" property="certPath"/>
  13. <result column="merchant_api_key" jdbcType="VARCHAR" property="merchantApiKey"/>
  14. <result column="merchant_cert_path" jdbcType="VARCHAR" property="merchantCertPath"/>
  15. <result column="notify_url" jdbcType="VARCHAR" property="notifyUrl"/>
  16. <result column="notify_token" jdbcType="VARCHAR" property="notifyToken"/>
  17. <result column="api_v3_key" jdbcType="VARCHAR" property="apiV3Key"/>
  18. <result column="cert_serial_no" jdbcType="VARCHAR" property="certSerialNo"/>
  19. <result column="private_key_path" jdbcType="VARCHAR" property="privateKeyPath"/>
  20. <result column="private_cert_pem_path" jdbcType="VARCHAR" property="privateCertPemPath"/>
  21. <result column="merchant_apiv3_key" jdbcType="VARCHAR" property="merchantApiv3Key"/>
  22. <result column="merchant_cert_serial_no" jdbcType="VARCHAR" property="merchantCertSerialNo"/>
  23. <result column="merchant_key_path" jdbcType="VARCHAR" property="merchantKeyPath"/>
  24. <result column="merchant_cert_pem_path" jdbcType="VARCHAR" property="merchantCertPemPath"/>
  25. <result column="type" jdbcType="INTEGER" property="type"/>
  26. <result column="mch_type" jdbcType="INTEGER" property="mchType"/>
  27. <result column="open_pay" jdbcType="VARCHAR" property="openPay"/>
  28. <result column="pay_version" jdbcType="INTEGER" property="payVersion"/>
  29. <result column="share" jdbcType="INTEGER" property="share"/>
  30. <result column="rate" jdbcType="INTEGER" property="rate"/>
  31. <result column="real_rate" jdbcType="INTEGER" property="realRate"/>
  32. <result column="is_commission" jdbcType="INTEGER" property="isCommission"/>
  33. <result column="system_rate" jdbcType="INTEGER" property="systemRate"/>
  34. <result column="sell_rate" jdbcType="INTEGER" property="sellRate"/>
  35. <result column="service_id" jdbcType="VARCHAR" property="serviceId"/>
  36. <result column="pay_score_notify_url" jdbcType="VARCHAR" property="payScoreNotifyUrl"/>
  37. <result column="business_type" jdbcType="INTEGER" property="businessType"/>
  38. <result column="brandid" jdbcType="VARCHAR" property="brandid"/>
  39. <result column="card_id" jdbcType="VARCHAR" property="cardId"/>
  40. </resultMap>
  41. <sql id="allColumns">
  42. `id`,`tenant_id`,`parent_tenant_id`,`mch_id`,`sub_mch_id`,`sub_app_id`,
  43. `api_key`,`cert_path`,`merchant_api_key`,`merchant_cert_path`,
  44. `notify_url`,`notify_token`,
  45. `api_v3_key`,`cert_serial_no`,`private_key_path`,`private_cert_pem_path`,
  46. `merchant_apiv3_key`,`merchant_cert_serial_no`,`merchant_key_path`,`merchant_cert_pem_path`,
  47. `type`,`mch_type`,`open_pay`,`pay_version`,`share`,`rate`,`real_rate`,
  48. `is_commission`,`system_rate`,`sell_rate`,
  49. `service_id`,`pay_score_notify_url`,
  50. `business_type`,`brandid`,`card_id`
  51. </sql>
  52. <sql id="dynamicWhereConditions">
  53. where 1 = 1
  54. <if test=" null != tenantId and '' != tenantId">
  55. and `tenant_id` = #{tenantId}
  56. </if>
  57. <if test=" null != parentTenantId and '' != parentTenantId">
  58. and `parent_tenant_id` = #{parentTenantId}
  59. </if>
  60. <if test=" null != mchId ">
  61. and `mch_id` = #{mchId}
  62. </if>
  63. <if test=" null != subMchId ">
  64. and `sub_mch_id` = #{subMchId}
  65. </if>
  66. <if test=" null != type ">
  67. and `type` = #{type}
  68. </if>
  69. <if test=" null != share ">
  70. and `share` = #{share}
  71. </if>
  72. <if test=" null != isCommission ">
  73. and `is_commission` = #{isCommission}
  74. </if>
  75. <if test=" null != ids ">
  76. and id in
  77. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  78. #{idItem}
  79. </foreach>
  80. </if>
  81. <if test=" null != sortColumns">order by ${sortColumns}</if>
  82. </sql>
  83. <select id="findList" parameterType="com.iformall.domain.po.WxPayAccount" resultMap="BaseResultMap">
  84. select
  85. <include refid="allColumns"/>
  86. from wx_pay_account
  87. <include refid="dynamicWhereConditions"/>
  88. </select>
  89. </mapper>