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

111 строки
3.3 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.WxProfitSharingOrderMapper">
  4. <resultMap id="BaseResultMap" type="com.simple.domain.po.WxProfitSharingOrder">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
  8. <result column="order_id" jdbcType="VARCHAR" property="orderId" />
  9. <result column="pay_amount" jdbcType="INTEGER" property="payAmount" />
  10. <result column="pay_time_end" jdbcType="TIMESTAMP" property="payTimeEnd" />
  11. <result column="pay_time_start" jdbcType="TIMESTAMP" property="payTimeStart" />
  12. <result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
  13. <result column="sharing_order_id" jdbcType="VARCHAR" property="sharingOrderId" />
  14. <result column="error_msg" jdbcType="VARCHAR" property="errorMsg" />
  15. <result column="sharing_status" jdbcType="INTEGER" property="sharingStatus" />
  16. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  17. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  18. </resultMap>
  19. <sql id="allColumns">
  20. `id`,`tenant_id`,`merchant_id`,`order_id`,`pay_amount`,`pay_time_end`,`pay_time_start`,`transaction_id`,`sharing_order_id`,`error_msg`,`sharing_status`,`update_time`,`create_time`
  21. </sql>
  22. <sql id="dynamicWhereConditions">
  23. where 1 = 1
  24. <if test=" null != id ">
  25. and `id` = #{id}
  26. </if>
  27. <if test=" null != tenantId ">
  28. and `tenant_id` = #{tenantId}
  29. </if>
  30. <if test=" null != merchantId ">
  31. and `merchant_id` = #{merchantId}
  32. </if>
  33. <if test=" null != orderId ">
  34. and `order_id` = #{orderId}
  35. </if>
  36. <if test=" null != payAmount ">
  37. and `pay_amount` = #{payAmount}
  38. </if>
  39. <if test=" null != payTimeEnd ">
  40. and `pay_time_end` = #{payTimeEnd}
  41. </if>
  42. <if test=" null != payTimeStart ">
  43. and `pay_time_start` = #{payTimeStart}
  44. </if>
  45. <if test=" null != transactionId ">
  46. and `transaction_id` like concat('%', #{transactionId},'%')
  47. </if>
  48. <if test=" null != sharingOrderId ">
  49. and `sharing_order_id` like concat('%', #{sharingOrderId},'%')
  50. </if>
  51. <if test=" null != errorMsg ">
  52. and `error_msg` like concat('%', #{errorMsg},'%')
  53. </if>
  54. <if test=" null != sharingStatus ">
  55. and `sharing_status` like concat('%', #{sharingStatus},'%')
  56. </if>
  57. <if test=" null != updateTime ">
  58. and `update_time` = #{updateTime}
  59. </if>
  60. <if test=" null != createTime ">
  61. and `create_time` = #{createTime}
  62. </if>
  63. <if test=" null != ids ">
  64. and id in
  65. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  66. #{idItem}
  67. </foreach>
  68. </if>
  69. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  70. </sql>
  71. <select id="findList" parameterType="com.simple.domain.po.WxProfitSharingOrder" resultMap="BaseResultMap">
  72. select <include refid="allColumns" /> from wx_profit_sharing_order
  73. <include refid="dynamicWhereConditions" />
  74. </select>
  75. </mapper>