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

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