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

58 lines
2.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.SitecommentMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Sitecomment">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="SITEID" property="siteid" jdbcType="BIGINT"/>
<result column="CHANNELID" property="channelid" jdbcType="BIGINT"/>
<result column="INFOID" property="infoid" jdbcType="BIGINT"/>
<result column="STAT" property="stat" jdbcType="INTEGER"/>
<result column="MEMBERID" property="memberid" jdbcType="BIGINT"/>
<result column="MENBERNAME" property="menbername" jdbcType="VARCHAR"/>
<result column="IP" property="ip" jdbcType="VARCHAR"/>
<result column="CONTENT" property="content" jdbcType="VARCHAR"/>
<result column="STARTS" property="starts" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
SITEID AS siteid,
CHANNELID AS channelid,
INFOID AS infoid,
STAT AS stat,
MEMBERID AS memberid,
MENBERNAME AS menbername,
IP AS ip,
CONTENT AS content,
STARTS AS starts
</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="siteid != null"> and SITEID ${siteid.dataOp} ${siteid.likestar}#{siteid.value}${siteid.likeend}</if>
<if test="channelid != null"> and CHANNELID ${channelid.dataOp} ${channelid.likestar}#{channelid.value}${channelid.likeend}</if>
<if test="infoid != null"> and INFOID ${infoid.dataOp} ${infoid.likestar}#{infoid.value}${infoid.likeend}</if>
<if test="stat != null"> and STAT ${stat.dataOp} ${stat.likestar}#{stat.value}${stat.likeend}</if>
<if test="memberid != null"> and MEMBERID ${memberid.dataOp} ${memberid.likestar}#{memberid.value}${memberid.likeend}</if>
<if test="menbername != null"> and MENBERNAME ${menbername.dataOp} ${menbername.likestar}#{menbername.value}${menbername.likeend}</if>
<if test="ip != null"> and IP ${ip.dataOp} ${ip.likestar}#{ip.value}${ip.likeend}</if>
<if test="content != null"> and CONTENT ${content.dataOp} ${content.likestar}#{content.value}${content.likeend}</if>
<if test="starts != null"> and STARTS ${starts.dataOp} ${starts.likestar}#{starts.value}${starts.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>