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
Hide 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:
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
# 环境 dev|test|prod
profiles
:
profiles
:
active
:
test
active
:
dev
# jackson时间格式化
# jackson时间格式化
jackson
:
jackson
:
time-zone
:
GMT+8
time-zone
:
GMT+8
...
...
src/main/resources/mapper/manage/NewsDao.xml
View file @
cab88cb7
...
@@ -193,28 +193,28 @@
...
@@ -193,28 +193,28 @@
</select>
</select>
<select
id=
"getHdbdList"
resultMap=
"newsMap"
>
<select
id=
"getHdbdList"
resultMap=
"newsMap"
>
SELECT t.id,
SELECT
t.title
,
a.classid
,
t.author
,
a.newsid
,
t.showtime
,
a.id AS yid
,
t.startdate
,
a.newslevels
,
t.keyword
,
a. TIME
,
t.editor
,
b.title
,
t.lastedit
or,
b.auth
or,
t.auditor
,
b.updatedate
,
t.statu
s,
b.level
s,
t1.classid,
b.id
t.levels,
FROM
t.releasedate,
TopIcNews AS a
t.updatedate
LEFT JOIN news AS b ON a.newsid = b.id
FROM TopIcNews t1
WHERE
LEFT JOIN
status = 1
news t
and levels > 0
ON t1.NewsId = t.id
AND a.classid =#{newsParams.classId}
and t.levels > 0
and b.id is not null
and t.status = '1'
ORDER BY
and t1.classid = #{newsParams.classId}
levels DESC,
order by t.levels desc,
releasedate DESC
releasedate DESC
</select>
</select>
<select
id=
"selectClassName"
resultType=
"java.lang.String"
>
<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