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
6.0 KiB
97 lines
6.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.SitchannelMybatisDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sitchannel">
|
|
<id column="ID" property="id" jdbcType="BIGINT"/>
|
|
<result column="CNAME" property="cname" jdbcType="VARCHAR"/>
|
|
<result column="TEMPLET" property="templet" jdbcType="VARCHAR"/>
|
|
<result column="INFOTEMPLET" property="infotemplet" jdbcType="VARCHAR"/>
|
|
<result column="DESCRIBES" property="describes" jdbcType="VARCHAR"/>
|
|
<result column="PARENTID" property="parentid" jdbcType="BIGINT"/>
|
|
<result column="ROOTID" property="rootid" jdbcType="BIGINT"/>
|
|
<result column="SITID" property="sitid" jdbcType="BIGINT"/>
|
|
<result column="URL" property="url" jdbcType="VARCHAR"/>
|
|
<result column="ISVALID" property="isvalid" jdbcType="INTEGER"/>
|
|
<result column="ORDERNUM" property="ordernum" jdbcType="INTEGER"/>
|
|
<result column="ISNAVIGATION" property="isnavigation" jdbcType="INTEGER"/>
|
|
<result column="CHANNELPATHPARENT" property="channelpathparent" jdbcType="VARCHAR"/>
|
|
<result column="CHANNELPATH" property="channelpath" jdbcType="VARCHAR"/>
|
|
<result column="HTMLCHANNEL" property="htmlchannel" jdbcType="VARCHAR"/>
|
|
<result column="HTMLPARENTCHANNEL" property="htmlparentchannel" jdbcType="VARCHAR"/>
|
|
<result column="HTMLHOMEPAGE" property="htmlhomepage" jdbcType="VARCHAR"/>
|
|
<result column="SHOWCHILD" property="showchild" jdbcType="INTEGER"/>
|
|
<result column="CHANNELIMG" property="channelimg" 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"/>
|
|
<association property="sit" column="SITEID" select="cn.jyjz.xiaoyao.cms.dataDao.SitMybatisDao.selectById"></association>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID AS id,
|
|
CNAME AS cname,
|
|
TEMPLET AS templet,
|
|
INFOTEMPLET AS infotemplet,
|
|
DESCRIBES AS describes,
|
|
PARENTID AS parentid,
|
|
ROOTID AS rootid,
|
|
SITID AS sitid,
|
|
URL AS url,
|
|
ISVALID AS isvalid,
|
|
ORDERNUM AS ordernum,
|
|
ISNAVIGATION AS isnavigation,
|
|
CHANNELPATHPARENT AS channelpathparent,
|
|
CHANNELPATH AS channelpath,
|
|
HTMLCHANNEL AS htmlchannel,
|
|
HTMLPARENTCHANNEL AS htmlparentchannel,
|
|
HTMLHOMEPAGE AS htmlhomepage,
|
|
SHOWCHILD AS showchild,
|
|
CHANNELIMG AS channelimg,
|
|
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="cname != null"> and CNAME ${cname.dataOp} ${cname.likestar}#{cname.value}${cname.likeend}</if>
|
|
<if test="templet != null"> and TEMPLET ${templet.dataOp} ${templet.likestar}#{templet.value}${templet.likeend}</if>
|
|
<if test="infotemplet != null"> and INFOTEMPLET ${infotemplet.dataOp} ${infotemplet.likestar}#{infotemplet.value}${infotemplet.likeend}</if>
|
|
<if test="describes != null"> and DESCRIBES ${describes.dataOp} ${describes.likestar}#{describes.value}${describes.likeend}</if>
|
|
<if test="parentid != null"> and PARENTID ${parentid.dataOp} ${parentid.likestar}#{parentid.value}${parentid.likeend}</if>
|
|
<if test="rootid != null"> and ROOTID ${rootid.dataOp} ${rootid.likestar}#{rootid.value}${rootid.likeend}</if>
|
|
<if test="sitid != null"> and SITID ${sitid.dataOp} ${sitid.likestar}#{sitid.value}${sitid.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="isnavigation != null"> and ISNAVIGATION ${isnavigation.dataOp} ${isnavigation.likestar}#{isnavigation.value}${isnavigation.likeend}</if>
|
|
<if test="channelpath != null"> and CHANNELPATH ${channelpath.dataOp} ${channelpath.likestar}#{channelpath.value}${channelpath.likeend}</if>
|
|
<if test="htmlchannel != null"> and HTMLCHANNEL ${htmlchannel.dataOp} ${htmlchannel.likestar}#{htmlchannel.value}${htmlchannel.likeend}</if>
|
|
<if test="htmlparentchannel != null"> and HTMLPARENTCHANNEL ${htmlparentchannel.dataOp} ${htmlparentchannel.likestar}#{htmlparentchannel.value}${htmlparentchannel.likeend}</if>
|
|
<if test="htmlhomepage != null"> and HTMLHOMEPAGE ${htmlhomepage.dataOp} ${htmlhomepage.likestar}#{htmlhomepage.value}${htmlhomepage.likeend}</if>
|
|
<if test="showchild != null"> and SHOWCHILD ${showchild.dataOp} ${showchild.likestar}#{showchild.value}${showchild.likeend}</if>
|
|
<if test="channelimg != null"> and CHANNELIMG ${channelimg.dataOp} ${channelimg.likestar}#{channelimg.value}${channelimg.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>
|