Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
9d6de177
Commit
9d6de177
authored
Feb 27, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了app的banner查询
parent
948d8e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
CmsBannerMapper.xml
...rces/mapper/business/cmsbanner/mapper/CmsBannerMapper.xml
+10
-10
No files found.
src/main/resources/mapper/business/cmsbanner/mapper/CmsBannerMapper.xml
View file @
9d6de177
...
@@ -42,27 +42,27 @@
...
@@ -42,27 +42,27 @@
</select>
</select>
<select
id=
"queryCmsBannersPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryCmsBannersPaged"
resultMap=
"BaseResultMap"
>
select
sm
b.*,oi.url
select
c
b.*,oi.url
from cms_banner
sm
b
from cms_banner
c
b
left join oss_info oi on
sm
b.picture_id = oi.business_id
left join oss_info oi on
c
b.picture_id = oi.business_id
where 1=1
where 1=1
and
sm
b.del_flag = '0'
and
c
b.del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and
sm
b.flag = #{entity.flag}
and
c
b.flag = #{entity.flag}
</if>
</if>
<if
test=
"entity.pictureId !=null and entity.pictureId != '' "
>
<if
test=
"entity.pictureId !=null and entity.pictureId != '' "
>
and
sm
b.picture_id = #{entity.pictureId}
and
c
b.picture_id = #{entity.pictureId}
</if>
</if>
<if
test=
"entity.bannerName !=null and entity.bannerName != '' "
>
<if
test=
"entity.bannerName !=null and entity.bannerName != '' "
>
and
sm
b.banner_name like concat('%',#{entity.bannerName},'%')
and
c
b.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
sm
b.weight = #{entity.weight}
and
c
b.weight = #{entity.weight}
</if>
</if>
ORDER BY
sm
b.weight DESC
ORDER BY
c
b.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.*,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment