| 
						
						
							
								
							
						
						
					 | 
					@ -147,6 +147,11 @@ public class WorkActServiceImpl implements WorkActService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //构造属性保存活动属性,活动内容
 | 
					 | 
					 | 
					        //构造属性保存活动属性,活动内容
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ActInfoEntity actInfoEntity=this.constructActInfo(formDTO); | 
					 | 
					 | 
					        ActInfoEntity actInfoEntity=this.constructActInfo(formDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //校验参数
 | 
					 | 
					 | 
					        //校验参数
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //校验 活动报名截止时间应该大于当前时间
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (actInfoEntity.getSignUpEndTime().before(DateUtils.minStrToSecondDate(DateUtils.format(new Date(), DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE)))){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_SIGN_UP_END_TIME_EARLIER_NOW_EERROR.getCode(),EpmetErrorCode.ACT_SIGN_UP_END_TIME_EARLIER_NOW_EERROR.getMsg()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.checkPublishFormDTO(actInfoEntity); | 
					 | 
					 | 
					        this.checkPublishFormDTO(actInfoEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        PublishActResultDTO publishActResultDTO=new PublishActResultDTO(); | 
					 | 
					 | 
					        PublishActResultDTO publishActResultDTO=new PublishActResultDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //内容审核(活动标题、招募要求、活动内容图文)
 | 
					 | 
					 | 
					        //内容审核(活动标题、招募要求、活动内容图文)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -186,18 +191,19 @@ public class WorkActServiceImpl implements WorkActService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @Date 2020/7/24 16:45  | 
					 | 
					 | 
					     * @Date 2020/7/24 16:45  | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     **/ | 
					 | 
					 | 
					     **/ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private void checkPublishFormDTO(ActInfoEntity actInfoEntity) { | 
					 | 
					 | 
					    private void checkPublishFormDTO(ActInfoEntity actInfoEntity) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //1、活动预计开始时间、活动预计结束时间
 | 
					 | 
					 | 
					        //1、活动预计开始时间、活动预计结束时间
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if(actInfoEntity.getActStartTime().compareTo(actInfoEntity.getActEndTime())!=-1){ | 
					 | 
					 | 
					        if(actInfoEntity.getActStartTime().compareTo(actInfoEntity.getActEndTime())!=-1){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_START_TIME_ERROR.getCode()); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_START_TIME_ERROR.getCode(),EpmetErrorCode.ACT_START_TIME_ERROR.getMsg()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //2、签到开始时间、签到结束时间
 | 
					 | 
					 | 
					        //2、签到开始时间、签到结束时间
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if(actInfoEntity.getSignInStartTime().compareTo(actInfoEntity.getSignInEndTime())!=-1){ | 
					 | 
					 | 
					        if(actInfoEntity.getSignInStartTime().compareTo(actInfoEntity.getSignInEndTime())!=-1){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_SIGN_IN_START_TIME_ERROR.getCode()); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_SIGN_IN_START_TIME_ERROR.getCode(),EpmetErrorCode.ACT_SIGN_IN_START_TIME_ERROR.getMsg()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        int n=actInfoEntity.getSignUpEndTime().compareTo(actInfoEntity.getActStartTime()); | 
					 | 
					 | 
					        int n=actInfoEntity.getSignUpEndTime().compareTo(actInfoEntity.getActStartTime()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //3、报名截止时间(应该在活动预计开始时间之前)
 | 
					 | 
					 | 
					        //3、报名截止时间(应该在活动预计开始时间之前)
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if(n!=-1){ | 
					 | 
					 | 
					        if(n!=-1){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            throw new RenException((EpmetErrorCode.ACT_SIGN_UP_END_TIME_ERROR.getCode())); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.ACT_SIGN_UP_END_TIME_ERROR.getCode(),EpmetErrorCode.ACT_SIGN_UP_END_TIME_ERROR.getMsg()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -327,7 +333,7 @@ public class WorkActServiceImpl implements WorkActService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if(result.success()&&null!=result.getData()){ | 
					 | 
					 | 
					            if(result.success()&&null!=result.getData()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                actInfoEntity.setPid(result.getData().getPid()); | 
					 | 
					 | 
					                actInfoEntity.setPid(result.getData().getPid()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }else{ | 
					 | 
					 | 
					            }else{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                logger.warn("根据agencyId查询组织信息失败,agencyId=",formDTO.getSponsorId()); | 
					 | 
					 | 
					                logger.warn("根据agencyId查询组织信息失败,agencyId={}",formDTO.getSponsorId()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }else{ | 
					 | 
					 | 
					        }else{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            actInfoEntity.setPid(StrConstant.EPMETY_STR); | 
					 | 
					 | 
					            actInfoEntity.setPid(StrConstant.EPMETY_STR); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |