Commit cab88cb7 by rongkailun

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

parent 3dd003b2
......@@ -14,7 +14,7 @@ spring:
name: GS1OfficeWebSit
# 环境 dev|test|prod
profiles:
active: test
active: dev
# jackson时间格式化
jackson:
time-zone: GMT+8
......
......@@ -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.lasteditor,
t.auditor,
t.status,
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.author,
b.updatedate,
b.levels,
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">
......
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