|
|
@ -559,7 +559,19 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
recordEntity.setCustomerId(articleEntity.getCustomerId()); |
|
|
|
recordEntity.setArticleId(formDTO.getArticleId()); |
|
|
|
recordEntity.setOpUser(articleEntity.getPublisherName() + "-" + staffDTO.getRealName()); |
|
|
|
recordEntity.setContent(String.format(ArticleConstant.OFF_LINE_ARTICLE_MSG, articleEntity.getPublisherName(), staffDTO.getRealName(), articleEntity.getTitle())); |
|
|
|
//下线文案,分为全部下线和部分下线
|
|
|
|
String content = ""; |
|
|
|
if (null == publishedList || publishedList.size() < NumConstant.ONE) { |
|
|
|
content = String.format(ArticleConstant.OFF_LINE_ALL_ARTICLE_MSG, articleEntity.getPublisherName(), staffDTO.getRealName(), articleEntity.getTitle()); |
|
|
|
} else { |
|
|
|
StringBuffer offLineRangeDesc = new StringBuffer(); |
|
|
|
offLineList.forEach(off -> { |
|
|
|
offLineRangeDesc.append(offLineRangeDesc.length() > NumConstant.ZERO ? "、" : ""); |
|
|
|
offLineRangeDesc.append(off.getAgencyGridName()); |
|
|
|
}); |
|
|
|
content = String.format(ArticleConstant.OFF_LINE_ARTICLE_MSG, articleEntity.getPublisherName(), staffDTO.getRealName(), articleEntity.getTitle(), offLineRangeDesc); |
|
|
|
} |
|
|
|
recordEntity.setContent(content); |
|
|
|
recordEntity.setOpType(ArticleConstant.OFFLINE); |
|
|
|
recordEntity.setOpTime(date); |
|
|
|
articleOperateRecordService.insert(recordEntity); |
|
|
|