Authored by mlge

种草--话题修改

... ... @@ -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());
//更改分组
... ...
... ... @@ -192,7 +192,12 @@
width: 25,
align: "left",
formatter: function (value, rowData, rowIndex) {
return '<a target="_blank" href="' + value + '"><img src="' + value + '" style="width: 120px;height: 120px;" /></a>';
if(value == null || value == ""){
return "";
}else{//由标签同步过来的话题 没有图
return '<a target="_blank" href="' + value + '"><img src="' + value + '" style="width: 120px;height: 120px;" /></a>';
}
}
},
{
... ...