后台服务
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.WxOcrModelMapper">
  4. <resultMap type="com.iformall.domain.po.WxOcrModel" id="BaseResultMap">
  5. <result property="id" column="id"/>
  6. <result property="langCode" column="lang_code" jdbcType="VARCHAR"/>
  7. <result property="fontName" column="font_name" jdbcType="VARCHAR"/>
  8. <result property="remark" column="remark" jdbcType="VARCHAR"/>
  9. <result property="status" column="status" jdbcType="INTEGER"/>
  10. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  11. <result property="update_time" column="updateTime" jdbcType="TIMESTAMP"/>
  12. </resultMap>
  13. <sql id="allColumns">
  14. id,lang_code,font_name,remark,status,create_time,updateTime
  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 != langCode and '' != langCode">
  22. and `lang_code` = #{langCode}
  23. </if>
  24. <if test=" null != fontName and '' != fontName">
  25. and `font_name` = #{fontName}
  26. </if>
  27. <if test=" null != status ">
  28. and `status` = #{status}
  29. </if>
  30. <if test=" null != ids ">
  31. and id in
  32. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  33. #{idItem}
  34. </foreach>
  35. </if>
  36. <if test=" null != sortColumns">order by ${sortColumns}</if>
  37. </sql>
  38. <select id="findList" parameterType="com.iformall.domain.po.WxOcrModel" resultMap="BaseResultMap">
  39. select
  40. <include refid="allColumns"/>
  41. from wx_ocr_model
  42. <include refid="dynamicWhereConditions"/>
  43. </select>
  44. </mapper>