Commit 9d6de177 authored by liwei's avatar liwei

修改了app的banner查询

parent 948d8e67
...@@ -42,27 +42,27 @@ ...@@ -42,27 +42,27 @@
</select> </select>
<select id="queryCmsBannersPaged" resultMap="BaseResultMap"> <select id="queryCmsBannersPaged" resultMap="BaseResultMap">
select smb.*,oi.url select cb.*,oi.url
from cms_banner smb from cms_banner cb
left join oss_info oi on smb.picture_id = oi.business_id left join oss_info oi on cb.picture_id = oi.business_id
where 1=1 where 1=1
and smb.del_flag = '0' and cb.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' "> <if test="entity.flag !=null and entity.flag != '' ">
and smb.flag = #{entity.flag} and cb.flag = #{entity.flag}
</if> </if>
<if test="entity.pictureId !=null and entity.pictureId != '' "> <if test="entity.pictureId !=null and entity.pictureId != '' ">
and smb.picture_id = #{entity.pictureId} and cb.picture_id = #{entity.pictureId}
</if> </if>
<if test="entity.bannerName !=null and entity.bannerName != '' "> <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>
<if test="entity.type !=null and entity.type != '' "> <if test="entity.type !=null and entity.type != '' ">
and smb.type like concat('%',#{entity.type},'%') and cb.type = #{entity.type}
</if> </if>
<if test="entity.weight !=null and entity.weight != '' "> <if test="entity.weight !=null and entity.weight != '' ">
and smb.weight = #{entity.weight} and cb.weight = #{entity.weight}
</if> </if>
ORDER BY smb.weight DESC ORDER BY cb.weight DESC
</select> </select>
<select id="selectByIdWithUrl" resultType="org.rcisoft.business.cmsBanner.entity.CmsBanner"> <select id="selectByIdWithUrl" resultType="org.rcisoft.business.cmsBanner.entity.CmsBanner">
SELECT smb.*, 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