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/SitelinkcateMapper.xml

49 lines
2.3 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.SitelinkcateMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sitelinkcate">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="SLNAME" property="slname" jdbcType="VARCHAR"/>
<result column="STYPE" property="stype" jdbcType="INTEGER"/>
<result column="ISVALID" property="isvalid" jdbcType="INTEGER"/>
<result column="ORDERNUM" property="ordernum" jdbcType="INTEGER"/>
<result column="PAGEMAKE" property="pagemake" jdbcType="VARCHAR"/>
<result column="SITEID" property="siteid" jdbcType="BIGINT"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
SLNAME AS slname,
STYPE AS stype,
ISVALID AS isvalid,
ORDERNUM AS ordernum,
PAGEMAKE AS pagemake,
SITEID AS siteid
</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="slname != null"> and SLNAME ${slname.dataOp} ${slname.likestar}#{slname.value}${slname.likeend}</if>
<if test="stype != null"> and STYPE ${stype.dataOp} ${stype.likestar}#{stype.value}${stype.likeend}</if>
<if test="isvalid != null"> and ISVALID ${isvalid.dataOp} ${isvalid.likestar}#{isvalid.value}${isvalid.likeend}</if>
<if test="ordernum != null"> and ORDERNUM ${ordernum.dataOp} ${ordernum.likestar}#{ordernum.value}${ordernum.likeend}</if>
<if test="pagemake != null"> and PAGEMAKE ${pagemake.dataOp} ${pagemake.likestar}#{pagemake.value}${pagemake.likeend}</if>
<if test="siteid != null"> and SITEID ${siteid.dataOp} ${siteid.likestar}#{siteid.value}${siteid.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>