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

129 строки
3.9 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.simple.mapper.WxRefundOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.simple.domain.po.WxRefundOrder">
  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="transaction_id" jdbcType="VARCHAR" property="transactionId" />
  10. <result column="order_id" jdbcType="BIGINT" property="orderId" />
  11. <result column="pay_order_no" jdbcType="VARCHAR" property="payOrderNo" />
  12. <result column="c_user_id" jdbcType="BIGINT" property="cUserId" />
  13. <result column="total_fee" jdbcType="INTEGER" property="totalFee" />
  14. <result column="refund_fee" jdbcType="INTEGER" property="refundFee" />
  15. <result column="refund_time_start" jdbcType="TIMESTAMP" property="refundTimeStart" />
  16. <result column="refund_time_end" jdbcType="TIMESTAMP" property="refundTimeEnd" />
  17. <result column="refund_vendor" jdbcType="INTEGER" property="refundVendor" />
  18. <result column="refund_order_status" jdbcType="INTEGER" property="refundOrderStatus" />
  19. <result column="refund_id" jdbcType="VARCHAR" property="refundId" />
  20. <result column="fail_reason" jdbcType="VARCHAR" property="failReason" />
  21. </resultMap>
  22. <sql id="allColumns">
  23. `id`,`tenant_id`,`create_time`,`update_time`,`transaction_id`,`order_id`,`pay_order_no`,`c_user_id`,`total_fee`,`refund_fee`,`refund_time_start`,`refund_time_end`,`refund_vendor`,`refund_order_status`,`refund_id`,`fail_reason`
  24. </sql>
  25. <sql id="dynamicWhereConditions">
  26. where 1 = 1
  27. <if test=" null != id ">
  28. and `id` = #{id}
  29. </if>
  30. <if test=" null != tenantId ">
  31. and `tenant_id` like concat('%', #{tenantId},'%')
  32. </if>
  33. <if test=" null != createTime ">
  34. and `create_time` = #{createTime}
  35. </if>
  36. <if test=" null != updateTime ">
  37. and `update_time` = #{updateTime}
  38. </if>
  39. <if test=" null != transactionId ">
  40. and `transaction_id` like concat('%', #{transactionId},'%')
  41. </if>
  42. <if test=" null != orderId ">
  43. and `order_id` = #{orderId}
  44. </if>
  45. <if test=" null != payOrderNo ">
  46. and `pay_order_no` like concat('%', #{payOrderNo},'%')
  47. </if>
  48. <if test=" null != cUserId ">
  49. and `c_user_id` = #{cUserId}
  50. </if>
  51. <if test=" null != totalFee ">
  52. and `total_fee` = #{totalFee}
  53. </if>
  54. <if test=" null != refundFee ">
  55. and `refund_fee` = #{refundFee}
  56. </if>
  57. <if test=" null != refundTimeStart ">
  58. and `refund_time_start` = #{refundTimeStart}
  59. </if>
  60. <if test=" null != refundTimeEnd ">
  61. and `refund_time_end` = #{refundTimeEnd}
  62. </if>
  63. <if test=" null != refundVendor ">
  64. and `refund_vendor` = #{refundVendor}
  65. </if>
  66. <if test=" null != refundOrderStatus ">
  67. and `refund_order_status` = #{refundOrderStatus}
  68. </if>
  69. <if test=" null != refundId ">
  70. and `refund_id` like concat('%', #{refundId},'%')
  71. </if>
  72. <if test=" null != failReason ">
  73. and `fail_reason` like concat('%', #{failReason},'%')
  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.simple.domain.po.WxRefundOrder" resultMap="BaseResultMap">
  84. select <include refid="allColumns" /> from wx_refund_order
  85. <include refid="dynamicWhereConditions" />
  86. </select>
  87. </mapper>