Browse Source

Merge remote-tracking branch 'remotes/origin/dev_voice' into dev

dev_shibei_match
jianjun 5 years ago
parent
commit
fbedabe471
  1. 4
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java
  2. 4
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml

4
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

@ -177,7 +177,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
List<DraftContentEntity> draftContentList = null; List<DraftContentEntity> draftContentList = null;
if (StringUtils.isNotBlank(fromDTO.getDraftId())) { if (StringUtils.isNotBlank(fromDTO.getDraftId())) {
draftEntity = this.checkDraftStatus(fromDTO.getDraftId()); draftEntity = this.checkDraftStatus(fromDTO.getDraftId());
draftEntity.setTitle(StringUtils.isBlank(draftEntity.getTitle()) ? "" : draftEntity.getTitle()); draftEntity.setTitle(StringUtils.isBlank(fromDTO.getTitle()) ? "" : fromDTO.getTitle());
buildPreviewContent(fromDTO, draftEntity); buildPreviewContent(fromDTO, draftEntity);
draftDao.updateById(draftEntity); draftDao.updateById(draftEntity);
} else { } else {
@ -378,7 +378,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
} }
buildName(tokenDto,agencyGridNameList,publishRangeEntityList, fromDTO, articleGridResultDTO); buildName(tokenDto,agencyGridNameList,publishRangeEntityList, fromDTO, articleGridResultDTO);
buildAgencyGridNames(tokenDto,agencyGridNameList,publishRangeEntityList, fromDTO, articleGridResultDTO); buildAgencyGridNames(tokenDto,agencyGridNameList,publishRangeEntityList, fromDTO, articleGridResultDTO);
draftEntity.setPublishRangeDesc(StringUtils.join(agencyGridNameList,"|")); draftEntity.setPublishRangeDesc(StringUtils.join(agencyGridNameList,""));
return publishRangeEntityList; return publishRangeEntityList;
} }

4
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/ArticleDao.xml

@ -66,7 +66,7 @@
FROM article_tags at FROM article_tags at
WHERE at.DEL_FLAG = '0' WHERE at.DEL_FLAG = '0'
AND at.ARTICLE_ID = a.ID AND at.ARTICLE_ID = a.ID
<foreach item="tagId" collection="tagIdList" open="AND (" separator="or" close=")" index=""> <foreach item="tagId" collection="tagIdList" open="AND (" separator="and" close=")" index="">
at.TAG_ID = #{tagId} at.TAG_ID = #{tagId}
</foreach> </foreach>
) )
@ -124,7 +124,7 @@
FROM article_tags at FROM article_tags at
WHERE at.DEL_FLAG = '0' WHERE at.DEL_FLAG = '0'
AND at.ARTICLE_ID = t.articleId AND at.ARTICLE_ID = t.articleId
<foreach item="tagId" collection="tagIdList" open="AND (" separator="or" close=")" index=""> <foreach item="tagId" collection="tagIdList" open="AND (" separator="and" close=")" index="">
at.TAG_ID = #{tagId} at.TAG_ID = #{tagId}
</foreach> </foreach>
) )

Loading…
Cancel
Save