Commit cab88cb7 by rongkailun

【修改】活动报道bug处理,sql语句问题导致分页插件不按照指定字段排序

parent 3dd003b2
...@@ -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
......
...@@ -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.lasteditor, b.author,
t.auditor, b.updatedate,
t.status, b.levels,
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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment