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
d678e947
Commit
d678e947
authored
Nov 29, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】挡板咨询查询列表
parent
e1343de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
TopicnewsDao.xml
src/main/resources/mapper/manage/TopicnewsDao.xml
+31
-3
No files found.
src/main/resources/mapper/manage/TopicnewsDao.xml
View file @
d678e947
...
...
@@ -33,10 +33,38 @@
LEFT JOIN news AS b ON a.newsid = b.id
WHERE
a.classid = #{newsParams.classId}
AND levels > 0
<if
test=
"newsParams.releaseTimeStart !=null and newsParams.releaseTimeEnd !=null"
>
and b.releasedate BETWEEN #{newsParams.releaseTimeStart} AND #{newsParams.releaseTimeEnd}
</if>
<if
test=
"newsParams.updateTimeStart !=null and newsParams.updateTimeEnd !=null"
>
and b.updatedate BETWEEN #{newsParams.updateTimeStart} AND #{newsParams.updateTimeEnd}
</if>
<if
test=
"newsParams.keyword !=null and newsParams.keyword !=''"
>
and b.keyword like concat('%',#{newsParams.keyword},'%')
</if>
<if
test=
"newsParams.title !=null and newsParams.title !=''"
>
and b.title like concat('%',#{newsParams.title},'%')
</if>
<if
test=
"newsParams.author !=null and newsParams.author !=''"
>
and b.author like concat('%',#{newsParams.author},'%')
</if>
<if
test=
"newsParams.status !=null"
>
and b.status =#{newsParams.status}
</if>
<if
test=
"newsParams.auditor !=null and newsParams.auditor !=''"
>
and b.auditor =#{newsParams.auditor}
</if>
<choose>
<when
test=
"newsParams.levels != 0"
>
AND b.levels = #{newsParams.levels}
</when>
<otherwise>
AND b.levels = 0
</otherwise>
</choose>
ORDER BY
levels DESC,
releasedate DESC
b.
levels DESC,
b.
releasedate DESC
</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