Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
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
吴迪
gs1-office-web-sit
Commits
bbb18f7e
Commit
bbb18f7e
authored
Jan 14, 2022
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】支持查询全部等级数据
parent
57e56198
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
IndexCarouselManageDao.xml
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
+2
-2
PartnersDao.xml
src/main/resources/mapper/manage/PartnersDao.xml
+1
-1
PictureDao.xml
src/main/resources/mapper/manage/PictureDao.xml
+2
-2
PolicyDao.xml
src/main/resources/mapper/manage/PolicyDao.xml
+8
-1
No files found.
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
View file @
bbb18f7e
...
@@ -53,11 +53,11 @@
...
@@ -53,11 +53,11 @@
and starttime_index BETWEEN #{indexCarouselManage.startTime} AND #{indexCarouselManage.endTime}
and starttime_index BETWEEN #{indexCarouselManage.startTime} AND #{indexCarouselManage.endTime}
</if>
</if>
<choose>
<choose>
<when
test=
"indexCarouselManage.levels !=
0
"
>
<when
test=
"indexCarouselManage.levels !=
null and indexCarouselManage.levels !=''
"
>
AND t.levels = #{indexCarouselManage.levels}
AND t.levels = #{indexCarouselManage.levels}
</when>
</when>
<otherwise>
<otherwise>
AND t.levels
=
0
AND t.levels
>
0
</otherwise>
</otherwise>
</choose>
</choose>
ORDER BY
ORDER BY
...
...
src/main/resources/mapper/manage/PartnersDao.xml
View file @
bbb18f7e
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<select
id=
"selectPartnersList"
resultMap=
"partnersMap"
>
<select
id=
"selectPartnersList"
resultMap=
"partnersMap"
>
select * from Partners where 1=1
select * from Partners where 1=1
<choose>
<choose>
<when
test=
"newsParams.levels !=null"
>
<when
test=
"newsParams.levels !=null
and newsParams.levels !=''
"
>
AND levels = #{newsParams.levels}
AND levels = #{newsParams.levels}
</when>
</when>
<otherwise>
<otherwise>
...
...
src/main/resources/mapper/manage/PictureDao.xml
View file @
bbb18f7e
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
and inputDate BETWEEN #{params.inputDateStart} AND #{params.inputDateEnd}
and inputDate BETWEEN #{params.inputDateStart} AND #{params.inputDateEnd}
</if>
</if>
<choose>
<choose>
<when
test=
"params.
pictureLevel != 0
"
>
<when
test=
"params.
levels !=null and params.levels !=''
"
>
AND PicLevel = #{params.
pictureLevel
}
AND PicLevel = #{params.
levels
}
</when>
</when>
<otherwise>
<otherwise>
AND PicLevel = 0
AND PicLevel = 0
...
...
src/main/resources/mapper/manage/PolicyDao.xml
View file @
bbb18f7e
...
@@ -44,7 +44,14 @@
...
@@ -44,7 +44,14 @@
<if
test=
"newsParams.editor !=null and newsParams.editor !=''"
>
<if
test=
"newsParams.editor !=null and newsParams.editor !=''"
>
and editor =#{newsParams.editor}
and editor =#{newsParams.editor}
</if>
</if>
and levels = #{newsParams.levels}
<choose>
<when
test=
"newsParams.levels !=null and newsParams.levels !=''"
>
AND levels = #{newsParams.levels}
</when>
<otherwise>
AND levels > 0
</otherwise>
</choose>
ORDER BY
ORDER BY
id DESC
id DESC
</select>
</select>
...
...
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