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.
 
 
 
 
 

113 wiersze
3.4 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.WxProfitSharingReceiverMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxProfitSharingReceiver">
  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="receiver_type" jdbcType="INTEGER" property="receiverType" />
  9. <result column="receiver_account" jdbcType="VARCHAR" property="receiverAccount" />
  10. <result column="receiver_comments" jdbcType="VARCHAR" property="receiverComments" />
  11. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  12. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  13. <result column="sharing_type" jdbcType="INTEGER" property="sharingType" />
  14. <result column="bank_no" jdbcType="VARCHAR" property="bankNo" />
  15. <result column="true_name" jdbcType="VARCHAR" property="trueName" />
  16. <result column="bank_code" jdbcType="VARCHAR" property="bankCode" />
  17. <result column="status" jdbcType="INTEGER" property="status" />
  18. <result column="parameter" jdbcType="VARCHAR" property="parameter" />
  19. </resultMap>
  20. <sql id="allColumns">
  21. `id`,`tenant_id`,`merchant_id`,`receiver_type`,`receiver_account`,`receiver_comments`,`create_time`,`update_time`,`sharing_type`,`bank_no`,`true_name`,`bank_code`,`status`,`parameter`
  22. </sql>
  23. <sql id="dynamicWhereConditions">
  24. where 1 = 1
  25. <if test=" null != id ">
  26. and `id` = #{id}
  27. </if>
  28. <if test=" null != tenantId ">
  29. and `tenant_id` = #{tenantId}
  30. </if>
  31. <if test=" null != merchantId ">
  32. and `merchant_id` = #{merchantId}
  33. </if>
  34. <if test=" null != receiverType ">
  35. and `receiver_type` = #{receiverType}
  36. </if>
  37. <if test=" null != receiverAccount ">
  38. and `receiver_account` like concat('%', #{receiverAccount},'%')
  39. </if>
  40. <if test=" null != receiverComments ">
  41. and `receiver_comments` like concat('%', #{receiverComments},'%')
  42. </if>
  43. <if test=" null != createTime ">
  44. and `create_time` = #{createTime}
  45. </if>
  46. <if test=" null != updateTime ">
  47. and `update_time` = #{updateTime}
  48. </if>
  49. <if test=" null != sharingType ">
  50. and `sharing_type` = #{sharingType}
  51. </if>
  52. <if test=" null != bankNo ">
  53. and `bank_no` like concat('%', #{bankNo},'%')
  54. </if>
  55. <if test=" null != trueName ">
  56. and `true_name` like concat('%', #{trueName},'%')
  57. </if>
  58. <if test=" null != bankCode ">
  59. and `bank_code` like concat('%', #{bankCode},'%')
  60. </if>
  61. <if test=" null != status ">
  62. and `status` = #{status}
  63. </if>
  64. <if test=" null != ids ">
  65. and id in
  66. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  67. #{idItem}
  68. </foreach>
  69. </if>
  70. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  71. </sql>
  72. <select id="findList" parameterType="com.iformall.domain.po.WxProfitSharingReceiver" resultMap="BaseResultMap">
  73. select <include refid="allColumns" /> from wx_profit_sharing_receiver
  74. <include refid="dynamicWhereConditions" />
  75. </select>
  76. </mapper>