| 
						
						
						
					 | 
				
				 | 
				
					@ -1,6 +1,5 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					package com.epmet.modules.resiregister.service.impl; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.exception.EpmetErrorCode; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.security.dto.TokenDto; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.utils.Result; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dto.UserResiInfoDTO; | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -8,6 +7,7 @@ import com.epmet.dto.form.ResiInfoSubmitFormDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dto.form.ResiRegisterFormDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dto.form.VerificationCodeFormDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.dto.result.ResiRegisterResultDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.modules.exception.ModuleErrorCode; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.modules.feign.EpmetUserFeignClient; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.modules.resiregister.service.ResiRegisterService; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.modules.utils.ModuleConstant; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -38,11 +38,11 @@ public class ResiRegisterServiceImpl implements ResiRegisterService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == tokenDTO || StringUtils.isBlank(tokenDTO.getUserId())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result<ResiRegisterResultDTO>().error(ModuleConstant.USER_NOT_NULL); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == formDTO || StringUtils.isBlank(formDTO.getCustomerId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /*if (null == formDTO || StringUtils.isBlank(formDTO.getCustomerId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || StringUtils.isBlank(formDTO.getGridId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || StringUtils.isBlank(formDTO.getVisitFrom())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result<ResiRegisterResultDTO>().error(EpmetErrorCode.PARTICIPATION_EXCEPTION.getName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result<ResiRegisterResultDTO>().error(ModuleErrorCode.PARTICIPATION_EXCEPTION); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }*/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        formDTO.setUserId(tokenDTO.getUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return epmetUserFeignClient.init(formDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -57,11 +57,11 @@ public class ResiRegisterServiceImpl implements ResiRegisterService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == tokenDTO || StringUtils.isBlank(tokenDTO.getUserId())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result().error(ModuleConstant.USER_NOT_NULL); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == resiInfoSubmitFormDTO || StringUtils.isBlank(resiInfoSubmitFormDTO.getCustomerId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /*if (null == resiInfoSubmitFormDTO || StringUtils.isBlank(resiInfoSubmitFormDTO.getCustomerId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || StringUtils.isBlank(resiInfoSubmitFormDTO.getGridId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || StringUtils.isBlank(resiInfoSubmitFormDTO.getResiVisitId())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result().error(EpmetErrorCode.PARAMETER_EXCEPTION.getName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }*/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        UserResiInfoDTO userResiInfoDTO = resiInfoSubmitFormDTO.getResiInfo(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        userResiInfoDTO.setUserId(tokenDTO.getUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        userResiInfoDTO.setApp(tokenDTO.getApp()); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -81,10 +81,13 @@ public class ResiRegisterServiceImpl implements ResiRegisterService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == tokenDTO || StringUtils.isBlank(tokenDTO.getUserId())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result().error(ModuleConstant.USER_NOT_NULL); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == formDTO || StringUtils.isBlank(formDTO.getMobile()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        /*if (null == formDTO || StringUtils.isBlank(formDTO.getMobile()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || StringUtils.isBlank(formDTO.getResiVisitId()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                || !validateMobile(formDTO.getMobile())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result<ResiRegisterResultDTO>().error(EpmetErrorCode.PARAMETER_EXCEPTION.getName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }*/ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (!validateMobile(formDTO.getMobile())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return new Result<ResiRegisterResultDTO>().error(ModuleErrorCode.MOBILE_EXCEPTION); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        formDTO.setUserId(tokenDTO.getUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return epmetUserFeignClient.getVerificationCode(formDTO); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |