|  | @ -14,6 +14,7 @@ import com.epmet.dto.form.RegisterAndBindFormDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.result.HomeInfoResultDTO; |  |  | import com.epmet.dto.result.HomeInfoResultDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.result.HomeUserBriefResultDTO; |  |  | import com.epmet.dto.result.HomeUserBriefResultDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.IcResiUserConfirmService; |  |  | import com.epmet.service.IcResiUserConfirmService; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.service.IcResiUserService; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.MyHomeService; |  |  | import com.epmet.service.MyHomeService; | 
			
		
	
		
		
			
				
					|  |  | import lombok.extern.slf4j.Slf4j; |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.beans.factory.annotation.Autowired; |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
	
		
		
			
				
					|  | @ -37,6 +38,9 @@ public class MyHomeController { | 
			
		
	
		
		
			
				
					|  |  |     @Autowired |  |  |     @Autowired | 
			
		
	
		
		
			
				
					|  |  |     private IcResiUserConfirmService icResiUserConfirmService; |  |  |     private IcResiUserConfirmService icResiUserConfirmService; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     @Autowired | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     private IcResiUserService icResiUserService; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @PostMapping("memberList/{houseCode}") |  |  |     @PostMapping("memberList/{houseCode}") | 
			
		
	
		
		
			
				
					|  |  |     public Result<List<HomeUserBriefResultDTO>> selectListHomeMember(@PathVariable("houseCode") String houseCode, @LoginUser TokenDto tokenDto) { |  |  |     public Result<List<HomeUserBriefResultDTO>> selectListHomeMember(@PathVariable("houseCode") String houseCode, @LoginUser TokenDto tokenDto) { | 
			
		
	
	
		
		
			
				
					|  | @ -44,51 +48,81 @@ public class MyHomeController { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    /**
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @describe: 新增家庭成员
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @author wangtong
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @date 2022/6/1 15:50
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @params [dto]
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @return com.epmet.commons.tools.utils.Result
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    */
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    @PostMapping("addMember")
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    public Result addMember(@RequestBody IcResiUserConfirmSubmitDTO dto){
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        //效验数据
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        dto.setSubmitType(HomeMemberOperationEnum.ADD.getCode());
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        return icResiUserConfirmService.addMember(dto);
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    }
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    /**
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @describe: 修改家庭成员
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @author wangtong
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @date 2022/6/1 15:27
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @params [dto]
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    * @return com.epmet.commons.tools.utils.Result
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    */
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    @PostMapping("editMember")
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    public Result save(@RequestBody IcResiUserConfirmSubmitDTO dto){
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        //效验数据
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        dto.setSubmitType(HomeMemberOperationEnum.UPDATE.getCode());
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //        return icResiUserConfirmService.editMember(dto);
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //    }
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | //
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |     * @describe: 新增家庭成员 |  |  |     * @describe: 删除家庭成员 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     * @author wangtong |  |  |     * @author wangtong | 
			
		
	
		
		
			
				
					
					|  |  |     * @date 2022/6/1 15:50 |  |  |     * @date 2022/6/1 16:10 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     * @params [dto] |  |  |     * @params [dto] | 
			
		
	
		
		
			
				
					|  |  |     * @return com.epmet.commons.tools.utils.Result |  |  |     * @return com.epmet.commons.tools.utils.Result | 
			
		
	
		
		
			
				
					|  |  |     */ |  |  |     */ | 
			
		
	
		
		
			
				
					
					|  |  |     @PostMapping("addMember") |  |  |     @PostMapping("delMember") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     public Result addMember(@RequestBody IcResiUserConfirmSubmitDTO dto){ |  |  |     public Result delMember(@RequestBody IcResiUserConfirmSubmitDTO dto){ | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |         //效验数据
 |  |  |         //效验数据
 | 
			
		
	
		
		
			
				
					|  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); | 
			
		
	
		
		
			
				
					
					|  |  |         dto.setSubmitType(HomeMemberOperationEnum.ADD.getCode()); |  |  |         dto.setSubmitType(HomeMemberOperationEnum.DELETE.getCode()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         return icResiUserConfirmService.addMember(dto); |  |  |         return icResiUserConfirmService.delMember(dto); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |     * @describe: 修改家庭成员 |  |  |      * @describe: 新增家庭成员 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @author wangtong |  |  |      * @author wangtong | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @date 2022/6/1 15:27 |  |  |      * @date 2022/6/1 15:50 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @params [dto] |  |  |      * @params [dto] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @return com.epmet.commons.tools.utils.Result |  |  |      * @return com.epmet.commons.tools.utils.Result | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     */ |  |  |      */ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     @PostMapping("editMember") |  |  |     @PostMapping("addMember") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     public Result save(@RequestBody IcResiUserConfirmSubmitDTO dto){ |  |  |     public Result addMember(@RequestBody IcResiUserConfirmSubmitDTO dto){ | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |         //效验数据
 |  |  |         //效验数据
 | 
			
		
	
		
		
			
				
					|  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); | 
			
		
	
		
		
			
				
					
					|  |  |         dto.setSubmitType(HomeMemberOperationEnum.UPDATE.getCode()); |  |  |         return icResiUserService.addMember(dto); | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         return icResiUserConfirmService.editMember(dto); |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |     * @describe: 删除家庭成员 |  |  |      * @describe: 修改家庭成员 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @author wangtong |  |  |      * @author wangtong | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @date 2022/6/1 16:10 |  |  |      * @date 2022/6/1 15:27 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @params [dto] |  |  |      * @params [dto] | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     * @return com.epmet.commons.tools.utils.Result |  |  |      * @return com.epmet.commons.tools.utils.Result | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     */ |  |  |      */ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     @PostMapping("delMember") |  |  |     @PostMapping("editMember") | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |     public Result delMember(@RequestBody IcResiUserConfirmSubmitDTO dto){ |  |  |     public Result editMember(@RequestBody IcResiUserConfirmSubmitDTO dto){ | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |         //效验数据
 |  |  |         //效验数据
 | 
			
		
	
		
		
			
				
					|  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |  |  |         ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); | 
			
		
	
		
		
			
				
					
					|  |  |         dto.setSubmitType(HomeMemberOperationEnum.DELETE.getCode()); |  |  |         return icResiUserService.editMember(dto); | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         return icResiUserConfirmService.delMember(dto); |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     /** |  |  |     /** | 
			
		
	
		
		
			
				
					|  |  |     * @describe: 查询家庭成员信息 |  |  |     * @describe: 查询家庭成员信息 | 
			
		
	
		
		
			
				
					|  |  |     * @author wangtong |  |  |     * @author wangtong | 
			
		
	
	
		
		
			
				
					|  | 
 |