You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ocr/jyjz-system/jyjz-system-oa/target/classes/mapper/oa/OcrPlanMapper.xml

48 lines
2.5 KiB

<?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="cn.jyjz.xiaoyao.ocr.dataDao.OcrPlanMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.ocr.dataobject.OcrPlan">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="CREATEBY" property="createby" jdbcType="VARCHAR"/>
<result column="CREATETIME" property="createtime" jdbcType="BIGINT"/>
<result column="UPDATEBY" property="updateby" jdbcType="VARCHAR"/>
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
<result column="TENANTID" property="tenantid" jdbcType="BIGINT"/>
<result column="SOURCEPLANID" property="sourceplanid" jdbcType="VARCHAR"/>
<result column="PLANNAME" property="planname" jdbcType="VARCHAR"/>
<result column="REORDER" property="reorder" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
CREATEBY AS createby,
CREATETIME AS createtime,
UPDATEBY AS updateby,
UPDATETIME AS updatetime,
TENANTID AS tenantid,
SOURCEPLANID AS sourceplanid,
PLANNAME AS planname,
REORDER AS reorder
</sql>
<sql id="Base_Where">
<where>
<trim prefixOverrides="and|or">
<if test="id != null"> and ID ${id.dataOp} ${id.likestar}#{id.value}${id.likeend}</if>
<if test="createby != null"> and CREATEBY ${createby.dataOp} ${createby.likestar}#{createby.value}${createby.likeend}</if>
<if test="createtime != null"> and CREATETIME ${createtime.dataOp} ${createtime.likestar}#{createtime.value}${createtime.likeend}</if>
<if test="updateby != null"> and UPDATEBY ${updateby.dataOp} ${updateby.likestar}#{updateby.value}${updateby.likeend}</if>
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.likeend}</if>
<if test="tenantid != null"> and TENANTID ${tenantid.dataOp} ${tenantid.likestar}#{tenantid.value}${tenantid.likeend}</if>
<if test="sourceplanid != null"> and SOURCEPLANID ${sourceplanid.dataOp} ${sourceplanid.likestar}#{sourceplanid.value}${sourceplanid.likeend}</if>
<if test="planname != null"> and PLANNAME ${planname.dataOp} ${planname.likestar}#{planname.value}${planname.likeend}</if>
<if test="reorder != null"> and REORDER ${reorder.dataOp} ${reorder.likestar}#{reorder.value}${reorder.likeend}</if>
</trim>
</where>
<if test="page != null">
<if test="page.sortname != null"> order by ${page.sortname} ${page.sortorder}</if>
limit ${page.start}, ${page.Pagesize}
</if>
</sql>
</mapper>