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
cab88cb7
Commit
cab88cb7
authored
Feb 09, 2022
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】活动报道bug处理,sql语句问题导致分页插件不按照指定字段排序
parent
3dd003b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
application.yml
src/main/resources/application.yml
+1
-1
NewsDao.xml
src/main/resources/mapper/manage/NewsDao.xml
+22
-22
No files found.
src/main/resources/application.yml
View file @
cab88cb7
...
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
profiles
:
active
:
test
active
:
dev
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
src/main/resources/mapper/manage/NewsDao.xml
View file @
cab88cb7
...
...
@@ -193,28 +193,28 @@
</select>
<select
id=
"getHdbdList"
resultMap=
"newsMap"
>
SELECT t.id,
t.title
,
t.author
,
t.showtime
,
t.startdate
,
t.keyword
,
t.editor
,
t.lastedit
or,
t.auditor
,
t.statu
s,
t1.classid,
t.levels,
t.releasedate,
t.updatedate
FROM TopIcNews t1
LEFT JOIN
news t
ON t1.NewsId = t.id
and t.levels > 0
and t.status = '1'
and t1.classid = #{newsParams.classId}
order by t.levels desc,
releasedate DESC
SELECT
a.classid
,
a.newsid
,
a.id AS yid
,
a.newslevels
,
a. TIME
,
b.title
,
b.auth
or,
b.updatedate
,
b.level
s,
b.id
FROM
TopIcNews AS a
LEFT JOIN news AS b ON a.newsid = b.id
WHERE
status = 1
and levels > 0
AND a.classid =#{newsParams.classId}
and b.id is not null
ORDER BY
levels DESC,
releasedate DESC
</select>
<select
id=
"selectClassName"
resultType=
"java.lang.String"
>
...
...
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