Commit 8a5d4e17 by rongkailun

【修改】中心活动、地方动态按照文档中提供得语句修改,排序部分,没有改需求。

parent 2948ac2b
...@@ -188,29 +188,7 @@ ...@@ -188,29 +188,7 @@
</select> </select>
<select id="selectRealTimeInfo" resultMap="newsMap"> <select id="selectRealTimeInfo" resultMap="newsMap">
SELECT t.id, select * from news where status=1 and levels>0 and classid=#{newsParams.classId} ORDER BY levels DESC,showtime DESC,id DESC
t.title,
t.author,
t.showtime,
t.startdate,
t.keyword,
t.editor,
t.lasteditor,
t.auditor,
t.status,
t.classid,
t.levels,
t.releasedate,
t.updatedate,
t1.name
from news t
LEFT JOIN newsClass t1
on t.classid = t1.id
where t1.name is not null
and t.classid = #{newsParams.classId}
and t.levels > 0
and t.status = '1'
order by t.levels desc,t.showtime DESC,t.id desc
</select> </select>
<select id="getHdbdList" resultMap="newsMap"> <select id="getHdbdList" resultMap="newsMap">
......
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