|  |  | @ -175,11 +175,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit | 
			
		
	
		
			
				
					|  |  |  | 		DraftEntity draftEntity = null; | 
			
		
	
		
			
				
					|  |  |  | 		List<DraftContentEntity> draftContentList = null; | 
			
		
	
		
			
				
					|  |  |  | 		if (StringUtils.isNotBlank(fromDTO.getDraftId())) { | 
			
		
	
		
			
				
					|  |  |  | 			draftEntity = draftDao.selectById(fromDTO.getDraftId()); | 
			
		
	
		
			
				
					|  |  |  | 			if (draftEntity == null) { | 
			
		
	
		
			
				
					|  |  |  | 				log.warn("saveOrUpdateContent draftId is not exist in db"); | 
			
		
	
		
			
				
					|  |  |  | 				throw new RenException("参数错误"); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 			draftEntity = this.checkDraftStatus(fromDTO.getDraftId()); | 
			
		
	
		
			
				
					|  |  |  | 			draftEntity.setTitle(StringUtils.isBlank(draftEntity.getTitle()) ? "" : draftEntity.getTitle()); | 
			
		
	
		
			
				
					|  |  |  | 			buildPreviewContent(fromDTO, draftEntity); | 
			
		
	
		
			
				
					|  |  |  | 			draftDao.updateById(draftEntity); | 
			
		
	
	
		
			
				
					|  |  | @ -309,11 +305,12 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		if (NumConstant.ONE_STR.equals(draftEntity.getDelFlag())) { | 
			
		
	
		
			
				
					|  |  |  | 			log.warn("saveDraftAttr draftId:{} have deleted",draftId); | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException("参数错误"); | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException("草稿已删除"); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		if (DraftConstant.PUBLISHED.equals(draftEntity.getStatusFlag())) { | 
			
		
	
		
			
				
					|  |  |  | 		//只有为发布的才能保存修改
 | 
			
		
	
		
			
				
					|  |  |  | 		if (!DraftConstant.UNPUBLISH.equals(draftEntity.getStatusFlag())) { | 
			
		
	
		
			
				
					|  |  |  | 			log.warn("saveDraftAttr draftId:{}  publishStatus have published"); | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException("参数错误"); | 
			
		
	
		
			
				
					|  |  |  | 			throw new RenException("草稿发布状态错误"); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		return draftEntity; | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
	
		
			
				
					|  |  | @ -394,7 +391,6 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit | 
			
		
	
		
			
				
					|  |  |  | 		coverEntity.setImgUrl(coverImg); | 
			
		
	
		
			
				
					|  |  |  | 		coverEntity.setAuditStatus(ModuleConstant.AUDIT_STATUS_PASS); | 
			
		
	
		
			
				
					|  |  |  | 		coverEntity.setAuditReason(""); | 
			
		
	
		
			
				
					|  |  |  | 		coverEntity.setRevision(0); | 
			
		
	
		
			
				
					|  |  |  | 		coverEntity.setDelFlag(NumConstant.ZERO_STR); | 
			
		
	
		
			
				
					|  |  |  | 		return coverEntity; | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
	
		
			
				
					|  |  | @ -426,7 +422,6 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setAgencyGridName(agencyGridName); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setOffLineTime(null); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setPublishStatus(DraftConstant.UNPUBLISH); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setRevision(0); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setDelFlag(NumConstant.ZERO_STR); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setPids(articleGridResultDTO.getPids()); | 
			
		
	
		
			
				
					|  |  |  | 					draftPublishRangeEntity.setAllParentName(articleGridResultDTO.getAllParentName()); | 
			
		
	
	
		
			
				
					|  |  | @ -912,7 +907,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit | 
			
		
	
		
			
				
					|  |  |  | 			return null; | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		if (!NumConstant.ONE_STR.equals(draftEntity.getDelFlag())){ | 
			
		
	
		
			
				
					|  |  |  | 		if (!NumConstant.ZERO_STR.equals(draftEntity.getDelFlag())){ | 
			
		
	
		
			
				
					|  |  |  | 			log.error("scanContent draftId:{} delFlag:{} is not support 2 modify",draftId,draftEntity.getDelFlag()); | 
			
		
	
		
			
				
					|  |  |  | 			return null; | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
	
		
			
				
					|  |  | 
 |