后台服务
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

WxCouponSendConfigMapper.xml 2.3 KiB

2 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.WxCouponSendConfigMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCouponSendConfig">
  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="send_type" jdbcType="INTEGER" property="sendType" />
  9. <result column="value" jdbcType="INTEGER" property="value" />
  10. <result column="remark" jdbcType="VARCHAR" property="remark" />
  11. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  12. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  13. </resultMap>
  14. <sql id="allColumns">
  15. `id`,`tenant_id`,`parent_tenant_id`,`send_type`,`value`,`remark`,`create_time`,`update_time`
  16. </sql>
  17. <sql id="dynamicWhereConditions">
  18. where 1 = 1
  19. <if test=" null != id ">
  20. and `id` = #{id}
  21. </if>
  22. <if test=" null != tenantId and '' != tenantId">
  23. and `tenant_id` = #{tenantId}
  24. </if>
  25. <if test=" null != parentTenantId and '' != parentTenantId">
  26. and `parent_tenant_id` = #{parentTenantId}
  27. </if>
  28. <if test=" null != sendType ">
  29. and `send_type` = #{sendType}
  30. </if>
  31. <if test=" null != value ">
  32. and `value` = #{value}
  33. </if>
  34. <if test=" null != remark ">
  35. and `remark` like concat('%', #{remark},'%')
  36. </if>
  37. <if test=" null != createTime ">
  38. and `create_time` = #{createTime}
  39. </if>
  40. <if test=" null != updateTime ">
  41. and `update_time` = #{updateTime}
  42. </if>
  43. <if test=" null != ids ">
  44. and id in
  45. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  46. #{idItem}
  47. </foreach>
  48. </if>
  49. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  50. </sql>
  51. <select id="findList" parameterType="com.iformall.domain.po.WxCouponSendConfig" resultMap="BaseResultMap">
  52. select
  53. <include refid="allColumns"/>
  54. from wx_coupon_send_config
  55. <include refid="dynamicWhereConditions" />
  56. </select>
  57. </mapper>