后台服务
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.

WxMerchantOcrModelMapper.xml 2.1 KiB

2 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.WxMerchantOcrModelMapper">
  4. <resultMap type="com.iformall.domain.po.WxMerchantOcrModel" id="BaseResultMap">
  5. <result property="id" column="id"/>
  6. <result property="tenantId" column="tenant_id" jdbcType="VARCHAR"/>
  7. <result property="parentTenantId" column="parent_tenant_id" jdbcType="VARCHAR"/>
  8. <result property="merchantId" column="merchant_id" jdbcType="BIGINT"/>
  9. <result property="ocrModelId" column="ocr_model_id" jdbcType="BIGINT"/>
  10. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  11. <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
  12. </resultMap>
  13. <sql id="allColumns">
  14. id,tenant_id,parent_tenant_id,merchant_id,ocr_model_id,create_time,update_time
  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 != merchantId ">
  28. and `merchant_id` = #{merchantId}
  29. </if>
  30. <if test=" null != ocrModelId ">
  31. and `ocr_model_id` = #{ocrModelId}
  32. </if>
  33. <if test=" null != ids ">
  34. and id in
  35. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  36. #{idItem}
  37. </foreach>
  38. </if>
  39. <if test=" null != sortColumns">order by ${sortColumns}</if>
  40. </sql>
  41. <select id="findList" parameterType="com.iformall.domain.po.WxMerchantOcrModel" resultMap="BaseResultMap">
  42. select
  43. <include refid="allColumns"/>
  44. from wx_merchant_ocr_model
  45. <include refid="dynamicWhereConditions"/>
  46. </select>
  47. </mapper>