|  |  | @ -1,5 +1,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | package com.glxp.api.controller.sup; |  |  |  | package com.glxp.api.controller.sup; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.ArrayList; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					
					|  |  |  | import java.util.Map; |  |  |  | import java.util.Map; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import javax.annotation.Resource; |  |  |  | import javax.annotation.Resource; | 
			
		
	
	
		
		
			
				
					|  |  | @ -16,11 +18,14 @@ import org.springframework.web.bind.annotation.PostMapping; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.RequestBody; |  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.RestController; |  |  |  | import org.springframework.web.bind.annotation.RestController; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.alibaba.fastjson2.JSONObject; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |  |  |  | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.enums.ResultEnum; |  |  |  | import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.res.BaseResponse; |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.util.ResultVOUtils; |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.controller.BaseController; |  |  |  | import com.glxp.api.controller.BaseController; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.entity.sup.UserCertEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.entity.sup.UserPersonEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.entity.sup.UserRegisterEntity; |  |  |  | import com.glxp.api.entity.sup.UserRegisterEntity; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.sup.UserCertService; |  |  |  | import com.glxp.api.service.sup.UserCertService; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.sup.UserPersonService; |  |  |  | import com.glxp.api.service.sup.UserPersonService; | 
			
		
	
	
		
		
			
				
					|  |  | @ -59,12 +64,23 @@ public class UserRegisterController extends BaseController  { | 
			
		
	
		
		
			
				
					
					|  |  |  |     @GetMapping("/admin/auth/register/get/{mobile}") |  |  |  |     @GetMapping("/admin/auth/register/get/{mobile}") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse getInfo(@PathVariable String mobile) { |  |  |  |     public BaseResponse getInfo(@PathVariable String mobile) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         UserRegisterEntity userRegisterEntity = userRegisterService.getOne(new QueryWrapper<UserRegisterEntity>().eq("mobile", mobile)); |  |  |  |         UserRegisterEntity userRegisterEntity = userRegisterService.getOne(new QueryWrapper<UserRegisterEntity>().eq("mobile", mobile)); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<UserPersonEntity> userPersons = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         List<UserCertEntity> userCerts = new ArrayList<>(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(userRegisterEntity==null) { |  |  |  |         if(userRegisterEntity==null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             userRegisterEntity = new UserRegisterEntity(); |  |  |  |             userRegisterEntity = new UserRegisterEntity(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             userPersons = userPersonService.list(new QueryWrapper<UserPersonEntity>().eq("registerId", userRegisterEntity.getId())); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             userCerts = userCertService.list(new QueryWrapper<UserCertEntity>().eq("registerId", userRegisterEntity.getId())); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         return ResultVOUtils.success(userRegisterEntity); |  |  |  |         BaseResponse res = ResultVOUtils.success(userRegisterEntity); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         JSONObject object = (JSONObject) res.getData(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         object.put("userPersons", userPersons); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         object.put("userCerts", userCerts); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         res.setData(object); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return res; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      | 
			
		
	
		
		
			
				
					
					|  |  |  |     @PostMapping("/admin/auth/register/save") |  |  |  |     @PostMapping("/admin/auth/register/save") | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse saveRegister(@RequestBody @Valid UserRegisterEntity userRegisterEntity, HttpSession httpSession, |  |  |  |     public BaseResponse saveRegister(@RequestBody @Valid UserRegisterEntity userRegisterEntity, HttpSession httpSession, | 
			
		
	
		
		
			
				
					
					|  |  |  |                                      BindingResult bindingResult) { |  |  |  |                                      BindingResult bindingResult) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |