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

56 lines
2.6 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.SiteinfoextendMybatisDao">
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.cms.dataobject.Siteinfoextend">
<id column="ID" property="id" jdbcType="BIGINT"/>
<result column="INFOTYPE" property="infotype" jdbcType="INTEGER"/>
<result column="TITLE" property="title" jdbcType="VARCHAR"/>
<result column="FILEPATH" property="filepath" jdbcType="VARCHAR"/>
<result column="CONTENT" property="content" jdbcType="LONGVARCHAR"/>
<result column="SEDESC" property="sedesc" jdbcType="VARCHAR"/>
<result column="SENO" property="seno" jdbcType="INTEGER"/>
<result column="INFOID" property="infoid" jdbcType="BIGINT"/>
</resultMap>
<sql id="Base_Column_List">
ID AS id,
INFOTYPE AS infotype,
TITLE AS title,
FILEPATH AS filepath,
CONTENT AS content,
SEDESC AS sedesc,
SENO AS seno,
INFOID AS infoid
</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="infotype != null"> and INFOTYPE ${infotype.dataOp} ${infotype.likestar}#{infotype.value}${infotype.likeend}</if>
<if test="title != null"> and TITLE ${title.dataOp} ${title.likestar}#{title.value}${title.likeend}</if>
<if test="filepath != null"> and FILEPATH ${filepath.dataOp} ${filepath.likestar}#{filepath.value}${filepath.likeend}</if>
<if test="content != null"> and CONTENT ${content.dataOp} ${content.likestar}#{content.value}${content.likeend}</if>
<if test="sedesc != null"> and SEDESC ${sedesc.dataOp} ${sedesc.likestar}#{sedesc.value}${sedesc.likeend}</if>
<if test="seno != null"> and SENO ${seno.dataOp} ${seno.likestar}#{seno.value}${seno.likeend}</if>
<if test="infoid != null"> and INFOID ${infoid.dataOp} ${infoid.likestar}#{infoid.value}${infoid.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>
<select id="selectByInfoId" resultMap="BaseResultMap">
SELECT * FROM CMS_SITEINFOEXTEND_T WHERE INFOID = #{infoid} ORDER BY SENO DESC
</select>
</mapper>