Commit 277eef5c by rongkailun

【修改】党办、专题分类问题处理

parent 8e01cafd
......@@ -72,7 +72,7 @@ public class NewtopicController extends AbstractController {
// @RequiresPermissions("manage:newtopic:save")
public R save(@RequestBody NewtopicEntityVo newtopicVo) {
newtopicService.insert(newtopicVo, getUser());
return R.ok();
return R.ok("新增成功");
}
/**
......@@ -124,7 +124,7 @@ public class NewtopicController extends AbstractController {
QueryWrapper<NewtopicEntity> newtopicEntityQueryWrapper = new QueryWrapper<>();
newtopicEntityQueryWrapper.eq("classid",newtopicEntity.getClassid());
newtopicService.update(newtopicEntity,newtopicEntityQueryWrapper);
return R.ok();
return R.ok("审核通过!");
}
......
......@@ -14,23 +14,23 @@
<select id="selectTopicList" resultType="io.office.modules.manage.entity.NewsEntity">
SELECT
a.classid,
a.newsid id,
b.title,
b.author,
b.showtime,
b.startdate,
b.keyword,
b.editor,
b.lasteditor,
b.auditor,
b.status,
b.levels,
b.releasedate,
b.updatedate
a.classid,
a.newsid id,
b.title,
b.author,
b.showtime,
b.startdate,
b.keyword,
b.editor,
b.lasteditor,
b.auditor,
b.status,
b.levels,
b.releasedate,
b.updatedate
FROM
TopIcNews AS a
LEFT JOIN news AS b ON a.newsid = b.id
(select classid,newsid FROM TopIcNews group BY classid,newsid) AS a
LEFT JOIN news AS b ON a.newsid = b.id
WHERE
a.classid = #{newsParams.classId}
<if test="newsParams.releaseTimeStart !=null and newsParams.releaseTimeEnd !=null">
......@@ -63,8 +63,7 @@
</otherwise>
</choose>
ORDER BY
b.levels DESC,
b.releasedate DESC
a.newsid DESC
</select>
......
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