選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

125 行
4.8 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.PosPayOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.PosPayOrder">
  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="order_id" jdbcType="BIGINT" property="orderId" />
  10. <result column="bu_user_id" jdbcType="BIGINT" property="buUserId" />
  11. <result column="type" jdbcType="INTEGER" property="type" />
  12. <result column="pay_from" jdbcType="INTEGER" property="payFrom" />
  13. <result column="pay_amount" jdbcType="INTEGER" property="payAmount" />
  14. <result column="pay_time_start" jdbcType="TIMESTAMP" property="payTimeStart" />
  15. <result column="pay_time_end" jdbcType="TIMESTAMP" property="payTimeEnd" />
  16. <result column="prepay_id" jdbcType="VARCHAR" property="prepayId" />
  17. <result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
  18. <result column="pay_vendor" jdbcType="INTEGER" property="payVendor" />
  19. <result column="pay_order_no" jdbcType="VARCHAR" property="payOrderNo" />
  20. <result column="pay_order_status" jdbcType="INTEGER" property="payOrderStatus" />
  21. <result column="share" jdbcType="INTEGER" property="share" />
  22. <result column="share_amount" jdbcType="INTEGER" property="shareAmount" />
  23. <result column="rate_amount" jdbcType="INTEGER" property="rateAmount" />
  24. <result column="fail_reason" jdbcType="VARCHAR" property="failReason" />
  25. <result column="auth_code" jdbcType="VARCHAR" property="authCode" />
  26. <result column="open_id" jdbcType="VARCHAR" property="openId" />
  27. <result column="pay_end_from" jdbcType="INTEGER" property="payEndFrom" />
  28. </resultMap>
  29. <sql id="allColumns">
  30. `id`,`tenant_id`,`create_time`,`update_time`,`order_id`,`bu_user_id`,`type`,`pay_from`,`pay_amount`,`pay_time_start`,`pay_time_end`,`prepay_id`,`transaction_id`,`pay_vendor`,`pay_order_no`,`pay_order_status`,`share`,`share_amount`,`rate_amount`,`fail_reason`,`auth_code`,`open_id`,`pay_end_from`
  31. </sql>
  32. <sql id="dynamicWhereConditions">
  33. where 1 = 1
  34. <if test=" null != id ">
  35. and `id` = #{id}
  36. </if>
  37. <if test=" null != tenantId ">
  38. and `tenant_id` like concat('%', #{tenantId},'%')
  39. </if>
  40. <if test=" null != createTime ">
  41. and `create_time` = #{createTime}
  42. </if>
  43. <if test=" null != updateTime ">
  44. and `update_time` = #{updateTime}
  45. </if>
  46. <if test=" null != orderId ">
  47. and `order_id` = #{orderId}
  48. </if>
  49. <if test=" null != buUserId ">
  50. and `bu_user_id` = #{buUserId}
  51. </if>
  52. <if test=" null != type ">
  53. and `type` = #{type}
  54. </if>
  55. <if test=" null != payFrom ">
  56. and `pay_from` = #{payFrom}
  57. </if>
  58. <if test=" null != payAmount ">
  59. and `pay_amount` = #{payAmount}
  60. </if>
  61. <if test=" null != payTimeStart ">
  62. and `pay_time_start` = #{payTimeStart}
  63. </if>
  64. <if test=" null != payTimeEnd ">
  65. and `pay_time_end` = #{payTimeEnd}
  66. </if>
  67. <if test=" null != prepayId ">
  68. and `prepay_id` like concat('%', #{prepayId},'%')
  69. </if>
  70. <if test=" null != transactionId ">
  71. and `transaction_id` like concat('%', #{transactionId},'%')
  72. </if>
  73. <if test=" null != payVendor ">
  74. and `pay_vendor` = #{payVendor}
  75. </if>
  76. <if test=" null != payOrderNo ">
  77. and `pay_order_no` like concat('%', #{payOrderNo},'%')
  78. </if>
  79. <if test=" null != payOrderStatus ">
  80. and `pay_order_status` = #{payOrderStatus}
  81. </if>
  82. <if test=" null != share ">
  83. and `share` = #{share}
  84. </if>
  85. <if test=" null != shareAmount ">
  86. and `share_amount` = #{shareAmount}
  87. </if>
  88. <if test=" null != rateAmount ">
  89. and `rate_amount` = #{rateAmount}
  90. </if>
  91. <if test=" null != failReason ">
  92. and `fail_reason` like concat('%', #{failReason},'%')
  93. </if>
  94. <if test=" null != authCode ">
  95. and `auth_code` like concat('%', #{authCode},'%')
  96. </if>
  97. <if test=" null != openId ">
  98. and `open_id` like concat('%', #{openId},'%')
  99. </if>
  100. <if test=" null != payEndFrom ">
  101. and `pay_end_from` = #{payEndFrom}
  102. </if>
  103. <if test=" null != ids ">
  104. and id in
  105. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  106. #{idItem}
  107. </foreach>
  108. </if>
  109. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  110. </sql>
  111. <select id="findList" parameterType="com.iformall.domain.po.PosPayOrder" resultMap="BaseResultMap">
  112. select <include refid="allColumns" /> from pos_pay_order
  113. <include refid="dynamicWhereConditions" />
  114. </select>
  115. </mapper>