后台服务
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

59 satır
2.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.PosCouponOrderVerifyMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.PosCouponOrderVerify">
  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="coupon_order_id" jdbcType="BIGINT" property="couponOrderId" />
  9. <result column="pos_order_id" jdbcType="BIGINT" property="posOrderId" />
  10. <result column="state" jdbcType="INTEGER" property="state" />
  11. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  12. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  13. </resultMap>
  14. <sql id="allColumns">
  15. `id`,`tenant_id`,`parent_tenant_id`,`coupon_order_id`,`pos_order_id`,`state`
  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 != couponOrderId ">
  29. and `coupon_order_id` = #{couponOrderId}
  30. </if>
  31. <if test=" null != posOrderId ">
  32. and `pos_order_id` = #{posOrderId}
  33. </if>
  34. <if test=" null != state ">
  35. and `state` = #{state}
  36. </if>
  37. <if test=" null != ids ">
  38. and id in
  39. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  40. #{idItem}
  41. </foreach>
  42. </if>
  43. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  44. </sql>
  45. <select id="findList" parameterType="com.iformall.domain.po.PosCouponOrderVerify" resultMap="BaseResultMap">
  46. select <include refid="allColumns" /> from pos_coupon_order_verify
  47. <include refid="dynamicWhereConditions" />
  48. </select>
  49. </mapper>