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

73 lines
4.0 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.SitelinkMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sitelink">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="PARENTLINKID" property="parentlinkid" jdbcType="VARCHAR"/>
<result column="SNAME" property="sname" jdbcType="VARCHAR"/>
<result column="URL" property="url" jdbcType="VARCHAR"/>
<result column="ISVALID" property="isvalid" jdbcType="INTEGER"/>
<result column="ORDERNUM" property="ordernum" jdbcType="INTEGER"/>
<result column="SITEID" property="siteid" jdbcType="BIGINT"/>
<result column="STYPE" property="stype" jdbcType="INTEGER"/>
<result column="IMAGE" property="image" jdbcType="VARCHAR"/>
<result column="PAGEMAKE" property="pagemake" jdbcType="VARCHAR"/>
<result column="COLORS" property="colors" jdbcType="VARCHAR"/>
<result column="CREATEUSER" property="createuser" jdbcType="VARCHAR"/>
<result column="CREATEDATE" property="createdate" jdbcType="BIGINT"/>
<result column="UPDATEUSER" property="updateuser" jdbcType="VARCHAR"/>
<result column="UPDATETIME" property="updatetime" jdbcType="BIGINT"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
PARENTLINKID AS parentlinkid,
SNAME AS sname,
URL AS url,
ISVALID AS isvalid,
ORDERNUM AS ordernum,
SITEID AS siteid,
STYPE AS stype,
IMAGE AS image,
PAGEMAKE AS pagemake,
COLORS AS colors,
CREATEUSER AS createuser,
CREATEDATE AS createdate,
UPDATEUSER AS updateuser,
UPDATETIME AS updatetime
</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="parentlinkid != null"> and PARENTLINKID ${parentlinkid.dataOp} ${parentlinkid.likestar}#{parentlinkid.value}${parentlinkid.likeend}</if>
<if test="sname != null"> and SNAME ${sname.dataOp} ${sname.likestar}#{sname.value}${sname.likeend}</if>
<if test="url != null"> and URL ${url.dataOp} ${url.likestar}#{url.value}${url.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="siteid != null"> and SITEID ${siteid.dataOp} ${siteid.likestar}#{siteid.value}${siteid.likeend}</if>
<if test="stype != null"> and STYPE ${stype.dataOp} ${stype.likestar}#{stype.value}${stype.likeend}</if>
<if test="image != null"> and IMAGE ${image.dataOp} ${image.likestar}#{image.value}${image.likeend}</if>
<if test="pagemake != null"> and PAGEMAKE ${pagemake.dataOp} ${pagemake.likestar}#{pagemake.value}${pagemake.likeend}</if>
<if test="colors != null"> and COLORS ${colors.dataOp} ${colors.likestar}#{colors.value}${colors.likeend}</if>
<if test="createuser != null"> and CREATEUSER ${createuser.dataOp} ${createuser.likestar}#{createuser.value}${createuser.likeend}</if>
<if test="createdate != null"> and CREATEDATE ${createdate.dataOp} ${createdate.likestar}#{createdate.value}${createdate.likeend}</if>
<if test="updateuser != null"> and UPDATEUSER ${updateuser.dataOp} ${updateuser.likestar}#{updateuser.value}${updateuser.likeend}</if>
<if test="updatetime != null"> and UPDATETIME ${updatetime.dataOp} ${updatetime.likestar}#{updatetime.value}${updatetime.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>