Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

121 строка
4.5 KiB

  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.WxPayBillMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxPayBill">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
  7. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  8. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
  9. <result column="bill_id" jdbcType="BIGINT" property="billId"/>
  10. <result column="b_user_id" jdbcType="BIGINT" property="bUserId"/>
  11. <result column="ip" jdbcType="VARCHAR" property="ip"/>
  12. <result column="pay_amount" jdbcType="INTEGER" property="payAmount"/>
  13. <result column="pay_time_start" jdbcType="TIMESTAMP" property="payTimeStart"/>
  14. <result column="pay_time_end" jdbcType="TIMESTAMP" property="payTimeEnd"/>
  15. <result column="prepay_id" jdbcType="VARCHAR" property="prepayId"/>
  16. <result column="transaction_id" jdbcType="VARCHAR" property="transactionId"/>
  17. <result column="pay_vendor" jdbcType="INTEGER" property="payVendor"/>
  18. <result column="pay_bill_no" jdbcType="VARCHAR" property="payBillNo"/>
  19. <result column="pay_bill_status" jdbcType="INTEGER" property="payBillStatus"/>
  20. <result column="share" jdbcType="INTEGER" property="share"/>
  21. <result column="share_amount" jdbcType="INTEGER" property="shareAmount"/>
  22. <result column="fail_reason" jdbcType="VARCHAR" property="failReason"/>
  23. <result column="open_id" jdbcType="VARCHAR" property="openId"/>
  24. </resultMap>
  25. <sql id="allColumns">
  26. `id`,`tenant_id`,`create_time`,`update_time`,`bill_id`,`b_user_id`,`ip`,`pay_amount`,`pay_time_start`,`pay_time_end`,`prepay_id`,`transaction_id`,`pay_vendor`,`pay_bill_no`,`pay_bill_status`,`share`,`share_amount`,`fail_reason`,`open_id`
  27. </sql>
  28. <sql id="dynamicWhereConditions">
  29. where 1 = 1
  30. <if test=" null != id ">
  31. and `id` = #{id}
  32. </if>
  33. <if test=" null != tenantId ">
  34. and `tenant_id` = #{tenantId}
  35. </if>
  36. <if test=" null != createTime ">
  37. and `create_time` = #{createTime}
  38. </if>
  39. <if test=" null != updateTime ">
  40. and `update_time` = #{updateTime}
  41. </if>
  42. <if test=" null != billId ">
  43. and `bill_id` = #{billId}
  44. </if>
  45. <if test=" null != bUserId ">
  46. and `b_user_id` = #{bUserId}
  47. </if>
  48. <if test=" null != ip ">
  49. and `ip` like concat('%', #{ip},'%')
  50. </if>
  51. <if test=" null != payAmount ">
  52. and `pay_amount` = #{payAmount}
  53. </if>
  54. <if test=" null != payTimeStart ">
  55. and `pay_time_start` = #{payTimeStart}
  56. </if>
  57. <if test=" null != payTimeEnd ">
  58. and `pay_time_end` = #{payTimeEnd}
  59. </if>
  60. <if test=" null != prepayId ">
  61. and `prepay_d` like concat('%', #{prepayId},'%')
  62. </if>
  63. <if test=" null != transactionId ">
  64. and `transaction_id` like concat('%', #{transactionId},'%')
  65. </if>
  66. <if test=" null != payVendor ">
  67. and `pay_vendor` = #{payVendor}
  68. </if>
  69. <if test=" null != payBillNo ">
  70. and `pay_bill_no` like concat('%', #{payBillNo},'%')
  71. </if>
  72. <if test=" null != payBillStatus ">
  73. and `pay_bill_status` = #{payBillStatus}
  74. </if>
  75. <if test=" null != share ">
  76. and `share` = #{share}
  77. </if>
  78. <if test=" null != shareAmount ">
  79. and `share_amount` = #{shareAmount}
  80. </if>
  81. <if test=" null != failReason ">
  82. and `fail_reason` like concat('%', #{failReason},'%')
  83. </if>
  84. <if test=" null != openId ">
  85. and `open_id` = #{openId}
  86. </if>
  87. <if test=" null != ids ">
  88. and id in
  89. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  90. #{idItem}
  91. </foreach>
  92. </if>
  93. <if test=" null != sortColumns">order by ${sortColumns}</if>
  94. </sql>
  95. <select id="findList" parameterType="com.iformall.domain.po.WxPayBill" resultMap="BaseResultMap">
  96. select
  97. <include refid="allColumns"/>
  98. from wx_pay_bill
  99. <include refid="dynamicWhereConditions"/>
  100. </select>
  101. </mapper>