<?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="com.hollywood.manage.mapper.TBannerMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.hollywood.common.model.TBanner">
|
<id column="id" property="id" />
|
<result column="bannerName" property="bannerName" />
|
<result column="bannerType" property="bannerType" />
|
<result column="bannerPicture" property="bannerPicture" />
|
<result column="sortBy" property="sortBy" />
|
<result column="status" property="status" />
|
<result column="createTime" property="createTime" />
|
<result column="updateTime" property="updateTime" />
|
<result column="createBy" property="createBy" />
|
<result column="updateBy" property="updateBy" />
|
<result column="isDelete" property="isDelete" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, bannerName, bannerType, bannerPicture, sortBy,status, createTime, updateTime, createBy, updateBy, isDelete
|
</sql>
|
<select id="pageList" resultType="com.hollywood.common.model.TBanner">
|
select <include refid="Base_Column_List"></include>
|
from t_banner
|
<where>
|
<if test="query.bannerName != null and query.bannerName != ''">
|
AND bannerName LIKE concat('%',#{query.bannerName},'%')
|
</if>
|
<if test="query.bannerType != null">
|
AND bannerType = #{query.bannerType}
|
</if>
|
AND isDelete = ${@com.hollywood.common.enums.DisabledEnum@NO.getCode()}
|
</where>
|
ORDER BY sortBy DESC
|
</select>
|
|
</mapper>
|