后台服务
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.TtOrderPushErrorMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.TtOrderPushError">
  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="err_msg" jdbcType="VARCHAR" property="errMsg"/>
  9. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  10. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  11. </resultMap>
  12. <sql id="allColumns">
  13. `id`,`tenant_id`,`parent_tenant_id`,`err_msg`,
  14. `create_date`,`update_date`
  15. </sql>
  16. <sql id="dynamicWhereConditions">
  17. where 1=1
  18. <if test=" null != id ">
  19. and `id` = #{id}
  20. </if>
  21. <if test=" null != tenantId and '' != tenantId">
  22. and `tenant_id` = #{tenantId}
  23. </if>
  24. <if test=" null != parentTenantId and '' != parentTenantId">
  25. and `parent_tenant_id` = #{parentTenantId}
  26. </if>
  27. <if test=" null != ids ">
  28. and `id` in
  29. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  30. #{idItem}
  31. </foreach>
  32. </if>
  33. <if test=" null != sortColumns">order by ${sortColumns}</if>
  34. </sql>
  35. <select id="findList" parameterType="com.iformall.domain.po.TtOrderPushError" resultMap="BaseResultMap">
  36. select
  37. <include refid="allColumns"/>
  38. from tt_order_push_error
  39. <include refid="dynamicWhereConditions"/>
  40. </select>
  41. <select id="findIdList" parameterType="com.iformall.domain.po.TtOrderPushError" resultType="Long">
  42. select id
  43. from tt_order_push_error
  44. <include refid="dynamicWhereConditions"/>
  45. </select>
  46. </mapper>