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-cms/target/classes/mapper/cms/SittimeMapper.xml

43 lines
1.8 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.cms.dataDao.SittimeMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sittime">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="SITID" property="sitid" jdbcType="BIGINT"/>
<result column="TYPE" property="type" jdbcType="INTEGER"/>
<result column="MINUTE" property="minute" jdbcType="INTEGER"/>
<result column="HOUR" property="hour" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
SITID AS sitid,
TYPE AS type,
MINUTE AS minute,
HOUR AS hour
</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="sitid != null"> and SITID ${sitid.dataOp} ${sitid.likestar}#{sitid.value}${sitid.likeend}</if>
<if test="type != null"> and TYPE ${type.dataOp} ${type.likestar}#{type.value}${type.likeend}</if>
<if test="minute != null"> and MINUTE ${minute.dataOp} ${minute.likestar}#{minute.value}${minute.likeend}</if>
<if test="hour != null"> and HOUR ${hour.dataOp} ${hour.likestar}#{hour.value}${hour.likeend}</if>
<if test="userid != null"> and USERID ${userid.dataOp} ${userid.likestar}#{userid.value}${userid.likeend}</if>
<if test="listdept != null">
and DEPARTID in
<foreach collection="listdept.value" item="item" index="index" open="(" separator="," close=")" >
#{item}
</foreach>
</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>