|
@ -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); |
|
|