|
@@ -26,18 +26,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
adv_type, show_type, active_id,original_id from fs_adv
|
|
adv_type, show_type, active_id,original_id from fs_adv
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
- <select id="selectFsAdvList" parameterType="FsAdv" resultMap="FsAdvResult">
|
|
|
|
|
|
|
+ <select id="selectFsAdvList" resultMap="FsAdvResult">
|
|
|
<include refid="selectFsAdvVo"/>
|
|
<include refid="selectFsAdvVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="advTitle != null and advTitle != ''"> adv_title like concat('%', #{advTitle}, '%')</if>
|
|
|
|
|
- <if test="imageUrl != null and imageUrl != ''"> and image_url = #{imageUrl}</if>
|
|
|
|
|
- <if test="advUrl != null and advUrl != ''"> and adv_url = #{advUrl}</if>
|
|
|
|
|
- <if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
|
- <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
|
- <if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
|
|
|
|
- <if test="advType != null "> and adv_type = #{advType}</if>
|
|
|
|
|
- <if test="showType != null "> and show_type = #{showType}</if>
|
|
|
|
|
- <if test="originalId != null and originalId != ''"> and original_id = #{originalId}</if>
|
|
|
|
|
|
|
+ <if test="fsAdv.advTitle != null and fsAdv.advTitle != ''"> adv_title like concat('%', #{fsAdv.advTitle}, '%')</if>
|
|
|
|
|
+ <if test="fsAdv.imageUrl != null and fsAdv.imageUrl != ''"> and image_url = #{fsAdv.imageUrl}</if>
|
|
|
|
|
+ <if test="fsAdv.advUrl != null and fsAdv.advUrl != ''"> and adv_url = #{fsAdv.advUrl}</if>
|
|
|
|
|
+ <if test="fsAdv.content != null and fsAdv.content != ''"> and content = #{fsAdv.content}</if>
|
|
|
|
|
+ <if test="fsAdv.status != null and fsAdv.status != ''"> and status = #{fsAdv.status}</if>
|
|
|
|
|
+ <if test="fsAdv.sort != null and fsAdv.sort != ''"> and sort = #{fsAdv.sort}</if>
|
|
|
|
|
+ <if test="fsAdv.showType != null "> and show_type = #{fsAdv.showType}</if>
|
|
|
|
|
+ <if test="fsAdv.originalId != null and fsAdv.originalId != ''"> and original_id = #{fsAdv.originalId}</if>
|
|
|
|
|
+ <if test="types != null and types.length > 0">
|
|
|
|
|
+ and adv_type in
|
|
|
|
|
+ <foreach collection="types" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
order by status desc,sort,adv_id desc
|
|
order by status desc,sort,adv_id desc
|
|
|
</select>
|
|
</select>
|