Commit 696b2948 by rongkailun

【修改】文章管理bug修改

parent ecb3b3a4
......@@ -69,6 +69,9 @@ public class NewsServiceImpl extends ServiceImpl<NewsDao, NewsEntity> implements
newsEntityQueryWrapper.eq("id", news.getId());
news.setEditor(user.getUsername());
news.setLasteditor(user.getUsername());
if (news.getCclassid() != null) {
news.setClassid(news.getCclassid());
}
int update = baseMapper.update(news, newsEntityQueryWrapper);
if (update > 0) {
return R.ok("修改成功!");
......
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