Browse Source

判断错误

dev_shibei_match
jianjun 5 years ago
parent
commit
41db151453
  1. 4
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

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

@ -334,8 +334,8 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
throw new RenException(ModuleConstant.DRAFT_IS_TOP_ERROR); throw new RenException(ModuleConstant.DRAFT_IS_TOP_ERROR);
} }
if (fromDTO.getPublisherType() != DraftConstant.AGENCY && fromDTO.getPublisherType() != DraftConstant.DEPARTMENT if ( !DraftConstant.AGENCY.equals(fromDTO.getPublisherType()) || !DraftConstant.DEPARTMENT.equals(fromDTO.getPublisherType())
&& fromDTO.getPublisherType() != DraftConstant.GRID) { !DraftConstant.GRID.equals(fromDTO.getPublisherType())) {
throw new RenException(ModuleConstant.DRAFT_PUBLISHER_TYPE_ERROR); throw new RenException(ModuleConstant.DRAFT_PUBLISHER_TYPE_ERROR);
} }
return saveDraftAttr(tokenDto, fromDTO); return saveDraftAttr(tokenDto, fromDTO);

Loading…
Cancel
Save