...
|
...
|
@@ -10,10 +10,7 @@ import com.yohobuy.platform.common.exception.PlatformException; |
|
|
import com.yohobuy.platform.common.helper.ImagesHelper;
|
|
|
import com.yohobuy.platform.common.util.DateUtil;
|
|
|
import com.yohobuy.platform.dal.grass.*;
|
|
|
import com.yohobuy.platform.dal.grass.model.GrassArticle;
|
|
|
import com.yohobuy.platform.dal.grass.model.GrassArticleBlock;
|
|
|
import com.yohobuy.platform.dal.grass.model.GrassArticleProduct;
|
|
|
import com.yohobuy.platform.dal.grass.model.GrassTopic;
|
|
|
import com.yohobuy.platform.dal.grass.model.*;
|
|
|
import com.yohobuy.platform.grass.service.IGrassArticleService;
|
|
|
import com.yohobuy.platform.model.common.PageResponseVO;
|
|
|
import com.yohobuy.platform.model.grass.request.GrassArticleReq;
|
...
|
...
|
@@ -50,6 +47,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ |
|
|
@Resource
|
|
|
private IGrassTopicDAO grassTopicDAO;
|
|
|
|
|
|
@Resource
|
|
|
private IGrassArticleLabelDao grassArticleLabelDao;
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceCaller serviceCaller;
|
|
|
|
...
|
...
|
@@ -310,13 +310,19 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ |
|
|
|
|
|
//审核 通过--不通过
|
|
|
if(type == 2){
|
|
|
Integer authStatus = req.getAuthStatus();;
|
|
|
Integer authStatus = req.getAuthStatus();
|
|
|
Integer articleId = req.getArticleId();
|
|
|
GrassArticle grassArticle = new GrassArticle();
|
|
|
grassArticle.setId(req.getArticleId());
|
|
|
grassArticle.setId(articleId);
|
|
|
grassArticle.setAuthStatus(authStatus);
|
|
|
grassArticle.setAuthorizeAccount(req.getAuthorizeAccount());
|
|
|
grassArticle.setAuthTime(System.currentTimeMillis());
|
|
|
grassArticleDao.updateByPrimaryKeySelective(grassArticle);
|
|
|
//审核通过 或者不通过 需要修改article_label表--便于前台标签相关的文章 分页查询
|
|
|
GrassArticleLabel grassArticleLabel = new GrassArticleLabel();
|
|
|
grassArticleLabel.setArticleId(articleId);
|
|
|
grassArticleLabel.setAuthStatus(authStatus);//审核状态
|
|
|
grassArticleLabelDao.updateByPrimaryKeySelective(grassArticleLabel);
|
|
|
logger.info("updateArticle changeAuthStatus success! req={}",req);
|
|
|
}
|
|
|
|
...
|
...
|
|