Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

100 wiersze
3.0 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.WxProfitSharingResultMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxProfitSharingResult">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="merchant_id" jdbcType="BIGINT" property="merchantId" />
  8. <result column="sharing_order_id" jdbcType="BIGINT" property="sharingOrderId" />
  9. <result column="sharing_receiver_id" jdbcType="BIGINT" property="sharingReceiverId" />
  10. <result column="pay_amount" jdbcType="INTEGER" property="payAmount" />
  11. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  12. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  13. <result column="sharing_status" jdbcType="INTEGER" property="sharingStatus" />
  14. <result column="finish_time" jdbcType="VARCHAR" property="finishTime" />
  15. <result column="failed_reason" jdbcType="VARCHAR" property="failedReason" />
  16. <result column="description" jdbcType="VARCHAR" property="description" />
  17. </resultMap>
  18. <sql id="allColumns">
  19. `id`,`tenant_id`,`merchant_id`,`sharing_order_id`,`sharing_receiver_id`,`pay_amount`,`update_time`,`create_time`,`sharing_status`,`finish_time`,`failed_reason`,`description`
  20. </sql>
  21. <sql id="dynamicWhereConditions">
  22. where 1 = 1
  23. <if test=" null != id ">
  24. and `id` = #{id}
  25. </if>
  26. <if test=" null != tenantId ">
  27. and `tenant_id` = #{tenantId}
  28. </if>
  29. <if test=" null != merchantId ">
  30. and `merchant_id` = #{merchantId}
  31. </if>
  32. <if test=" null != sharingOrderId ">
  33. and `sharing_order_id` = #{sharingOrderId}
  34. </if>
  35. <if test=" null != sharingReceiverId ">
  36. and `sharing_receiver_id` = #{sharingReceiverId}
  37. </if>
  38. <if test=" null != payAmount ">
  39. and `pay_amount` = #{payAmount}
  40. </if>
  41. <if test=" null != updateTime ">
  42. and `update_time` = #{updateTime}
  43. </if>
  44. <if test=" null != createTime ">
  45. and `create_time` = #{createTime}
  46. </if>
  47. <if test=" null != sharingStatus ">
  48. and `sharing_status` = #{sharingStatus}
  49. </if>
  50. <if test=" null != finishTime ">
  51. and `finish_time` like concat('%', #{finishTime},'%')
  52. </if>
  53. <if test=" null != failedReason ">
  54. and `failed_reason` like concat('%', #{failedReason},'%')
  55. </if>
  56. <if test=" null != ids ">
  57. and id in
  58. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  59. #{idItem}
  60. </foreach>
  61. </if>
  62. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  63. </sql>
  64. <select id="findList" parameterType="com.iformall.domain.po.WxProfitSharingResult" resultMap="BaseResultMap">
  65. select <include refid="allColumns" /> from wx_profit_sharing_result
  66. <include refid="dynamicWhereConditions" />
  67. </select>
  68. </mapper>