Browse Source

修改获取属性接口 标签

master
jianjun 5 years ago
parent
commit
667bd4e303
  1. 6
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/DraftServiceImpl.java
  2. 3
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

6
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/DraftServiceImpl.java

@ -139,8 +139,8 @@ public class DraftServiceImpl extends BaseServiceImpl<DraftDao, DraftEntity> imp
List<String> gridIdList = baseDao.selectDraftGrids(formDTO.getDraftId());
draftAttrResultDTO.setCoverImg(coverImgDTO);
draftAttrResultDTO.setGridIdList(gridIdList);
if (StringUtils.isNoneBlank(draftAttrResultDTO.getTags())) {
String[] tagNames = draftAttrResultDTO.getTags().split("|");
if (StringUtils.isNotBlank(draftAttrResultDTO.getTags())) {
String[] tagNames = draftAttrResultDTO.getTags().split("\\|");
draftAttrResultDTO.setTagNameList(tagNames);
}
} else {
@ -167,7 +167,7 @@ public class DraftServiceImpl extends BaseServiceImpl<DraftDao, DraftEntity> imp
} else {
draftDetailResultDTO.setArticleContentList(new ArrayList<>());
}
if (StringUtils.isNoneBlank(draftDetailResultDTO.getTags())) {
if (StringUtils.isNotBlank(draftDetailResultDTO.getTags())) {
String[] tagNames = draftDetailResultDTO.getTags().split("\\|");
draftDetailResultDTO.setTagNameList(tagNames);
}else{

3
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/DraftDao.xml

@ -50,7 +50,8 @@
PUBLISH_DATE,
TITLE,
PUBLISH_RANGE_DESC,
PUBLISHER_TYPE
PUBLISHER_TYPE,
TAGS
FROM
draft
WHERE

Loading…
Cancel
Save