...
|
...
|
@@ -89,7 +89,7 @@ public class TopicServiceImpl implements ITopicService { |
|
|
record.setIsOfficial(req.getIsOfficial() == null ? 0 : req.getIsOfficial());
|
|
|
record.setAllowAttention(req.getAllowAttention()== null ? 0 : req.getAllowAttention());
|
|
|
record.setShowAttAmount(req.getShowAttAmount()== null ? 0 : req.getShowAttAmount());
|
|
|
if(req.getId() == null){
|
|
|
if(req.getId() == null){//新增
|
|
|
record.setArticleAmount(0);
|
|
|
record.setAttAmount(0);
|
|
|
record.setStatus(3);//待上架
|
...
|
...
|
@@ -97,7 +97,7 @@ public class TopicServiceImpl implements ITopicService { |
|
|
topicGroupDAO.updateTopicNum(req.getRelatedGroup(),true);
|
|
|
grassTopicDAO.insert(record);
|
|
|
logger.info("addUpGrassTopic add success! req={}",req);
|
|
|
}else{
|
|
|
}else{//修改
|
|
|
record.setUpdateTime(DateUtil.getCurrentTimeSeconds());
|
|
|
GrassTopic grassTopic = grassTopicDAO.selectByPrimaryKey(req.getId());
|
|
|
//更改分组
|
...
|
...
|
|