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.
97 lines
5.9 KiB
97 lines
5.9 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.SitMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sit">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="SNAME" property="sname" jdbcType="VARCHAR"/>
|
|
<result column="SITDOMAIN" property="sitdomain" jdbcType="VARCHAR"/>
|
|
<result column="SOURCEPATH" property="sourcepath" jdbcType="VARCHAR"/>
|
|
<result column="ORDERNUM" property="ordernum" jdbcType="INTEGER"/>
|
|
<result column="ISVALID" property="isvalid" jdbcType="INTEGER"/>
|
|
<result column="LOGO" property="logo" jdbcType="VARCHAR"/>
|
|
<result column="LIMITLOGO" property="limitlogo" jdbcType="VARCHAR"/>
|
|
<result column="COPYRIGHT" property="copyright" jdbcType="VARCHAR"/>
|
|
<result column="RECORDNUMBER" property="recordnumber" jdbcType="VARCHAR"/>
|
|
<result column="PARENTID" property="parentid" jdbcType="VARCHAR"/>
|
|
<result column="TEMPLETFILENAME" property="templetfilename" jdbcType="VARCHAR"/>
|
|
<result column="INDEXTEMPLET" property="indextemplet" jdbcType="VARCHAR"/>
|
|
<result column="KEYWORDS" property="keywords" jdbcType="VARCHAR"/>
|
|
<result column="DESCRIPTION" property="description" jdbcType="VARCHAR"/>
|
|
<result column="OTHERID" property="otherid" jdbcType="VARCHAR"/>
|
|
<result column="HOTTEL" property="hottel" jdbcType="VARCHAR"/>
|
|
<result column="QQCODE" property="qqcode" jdbcType="VARCHAR"/>
|
|
<result column="DEPTID" property="deptid" jdbcType="BIGINT"/>
|
|
<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,
|
|
SNAME AS sname,
|
|
SITDOMAIN AS sitdomain,
|
|
SOURCEPATH AS sourcepath,
|
|
ORDERNUM AS ordernum,
|
|
ISVALID AS isvalid,
|
|
LOGO AS logo,
|
|
LIMITLOGO AS limitlogo,
|
|
COPYRIGHT AS copyright,
|
|
RECORDNUMBER AS recordnumber,
|
|
PARENTID AS parentid,
|
|
TEMPLETFILENAME AS templetfilename,
|
|
INDEXTEMPLET AS indextemplet,
|
|
KEYWORDS AS keywords,
|
|
DESCRIPTION AS description,
|
|
OTHERID AS otherid,
|
|
HOTTEL AS hottel,
|
|
QQCODE AS qqcode,
|
|
DEPTID AS deptid,
|
|
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="sname != null"> and SNAME ${sname.dataOp} ${sname.likestar}#{sname.value}${sname.likeend}</if>
|
|
<if test="sitdomain != null"> and SITDOMAIN ${sitdomain.dataOp} ${sitdomain.likestar}#{sitdomain.value}${sitdomain.likeend}</if>
|
|
<if test="sourcepath != null"> and SOURCEPATH ${sourcepath.dataOp} ${sourcepath.likestar}#{sourcepath.value}${sourcepath.likeend}</if>
|
|
<if test="ordernum != null"> and ORDERNUM ${ordernum.dataOp} ${ordernum.likestar}#{ordernum.value}${ordernum.likeend}</if>
|
|
<if test="isvalid != null"> and ISVALID ${isvalid.dataOp} ${isvalid.likestar}#{isvalid.value}${isvalid.likeend}</if>
|
|
<if test="logo != null"> and LOGO ${logo.dataOp} ${logo.likestar}#{logo.value}${logo.likeend}</if>
|
|
<if test="limitlogo != null"> and LIMITLOGO ${limitlogo.dataOp} ${limitlogo.likestar}#{limitlogo.value}${limitlogo.likeend}</if>
|
|
<if test="copyright != null"> and COPYRIGHT ${copyright.dataOp} ${copyright.likestar}#{copyright.value}${copyright.likeend}</if>
|
|
<if test="recordnumber != null"> and RECORDNUMBER ${recordnumber.dataOp} ${recordnumber.likestar}#{recordnumber.value}${recordnumber.likeend}</if>
|
|
<if test="parentid != null"> and PARENTID ${parentid.dataOp} ${parentid.likestar}#{parentid.value}${parentid.likeend}</if>
|
|
<if test="templetfilename != null"> and TEMPLETFILENAME ${templetfilename.dataOp} ${templetfilename.likestar}#{templetfilename.value}${templetfilename.likeend}</if>
|
|
<if test="indextemplet != null"> and INDEXTEMPLET ${indextemplet.dataOp} ${indextemplet.likestar}#{indextemplet.value}${indextemplet.likeend}</if>
|
|
<if test="keywords != null"> and KEYWORDS ${keywords.dataOp} ${keywords.likestar}#{keywords.value}${keywords.likeend}</if>
|
|
<if test="description != null"> and DESCRIPTION ${description.dataOp} ${description.likestar}#{description.value}${description.likeend}</if>
|
|
<if test="otherid != null"> and OTHERID ${otherid.dataOp} ${otherid.likestar}#{otherid.value}${otherid.likeend}</if>
|
|
<if test="hottel != null"> and HOTTEL ${hottel.dataOp} ${hottel.likestar}#{hottel.value}${hottel.likeend}</if>
|
|
<if test="qqcode != null"> and QQCODE ${qqcode.dataOp} ${qqcode.likestar}#{qqcode.value}${qqcode.likeend}</if>
|
|
<if test="deptid != null"> and DEPTID ${deptid.dataOp} ${deptid.likestar}#{deptid.value}${deptid.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>
|