|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
- <mapper namespace="com.iformall.mapper.WxOcrModelMapper">
-
- <resultMap type="com.iformall.domain.po.WxOcrModel" id="BaseResultMap">
- <result property="id" column="id"/>
- <result property="langCode" column="lang_code" jdbcType="VARCHAR"/>
- <result property="fontName" column="font_name" jdbcType="VARCHAR"/>
- <result property="remark" column="remark" jdbcType="VARCHAR"/>
- <result property="status" column="status" jdbcType="INTEGER"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="update_time" column="updateTime" jdbcType="TIMESTAMP"/>
- </resultMap>
-
- <sql id="allColumns">
- id,lang_code,font_name,remark,status,create_time,updateTime
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
-
- <if test=" null != id ">
- and `id` = #{id}
- </if>
-
- <if test=" null != langCode and '' != langCode">
- and `lang_code` = #{langCode}
- </if>
- <if test=" null != fontName and '' != fontName">
- and `font_name` = #{fontName}
- </if>
-
- <if test=" null != status ">
- and `status` = #{status}
- </if>
-
- <if test=" null != ids ">
- and id in
- <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
- #{idItem}
- </foreach>
- </if>
- <if test=" null != sortColumns">order by ${sortColumns}</if>
- </sql>
-
- <select id="findList" parameterType="com.iformall.domain.po.WxOcrModel" resultMap="BaseResultMap">
- select
- <include refid="allColumns"/>
- from wx_ocr_model
- <include refid="dynamicWhereConditions"/>
- </select>
-
- </mapper>
|