Commit 9d6de177 authored by liwei's avatar liwei

修改了app的banner查询

parent 948d8e67
......@@ -42,27 +42,27 @@
</select>
<select id="queryCmsBannersPaged" resultMap="BaseResultMap">
select smb.*,oi.url
from cms_banner smb
left join oss_info oi on smb.picture_id = oi.business_id
select cb.*,oi.url
from cms_banner cb
left join oss_info oi on cb.picture_id = oi.business_id
where 1=1
and smb.del_flag = '0'
and cb.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' ">
and smb.flag = #{entity.flag}
and cb.flag = #{entity.flag}
</if>
<if test="entity.pictureId !=null and entity.pictureId != '' ">
and smb.picture_id = #{entity.pictureId}
and cb.picture_id = #{entity.pictureId}
</if>
<if test="entity.bannerName !=null and entity.bannerName != '' ">
and smb.banner_name like concat('%',#{entity.bannerName},'%')
and cb.banner_name like concat('%',#{entity.bannerName},'%')
</if>
<if test="entity.type !=null and entity.type != '' ">
and smb.type like concat('%',#{entity.type},'%')
and cb.type = #{entity.type}
</if>
<if test="entity.weight !=null and entity.weight != '' ">
and smb.weight = #{entity.weight}
and cb.weight = #{entity.weight}
</if>
ORDER BY smb.weight DESC
ORDER BY cb.weight DESC
</select>
<select id="selectByIdWithUrl" resultType="org.rcisoft.business.cmsBanner.entity.CmsBanner">
SELECT smb.*,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment