|  |  | @ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
			
		
	
		
			
				
					|  |  |  | import com.baomidou.mybatisplus.core.metadata.IPage; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.constant.FieldConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.constant.NumConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.ConvertUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
	
		
			
				
					|  |  | @ -139,4 +140,36 @@ public class IcResiUserConfirmServiceImpl extends BaseServiceImpl<IcResiUserConf | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(result); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 审核 | 
			
		
	
		
			
				
					|  |  |  |      * | 
			
		
	
		
			
				
					|  |  |  |      * @param dto | 
			
		
	
		
			
				
					|  |  |  |      * @Param dto | 
			
		
	
		
			
				
					|  |  |  |      * @Return | 
			
		
	
		
			
				
					|  |  |  |      * @Author zhaoqifeng | 
			
		
	
		
			
				
					|  |  |  |      * @Date 2022/6/1 17:27 | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     @Transactional(rollbackFor = Exception.class) | 
			
		
	
		
			
				
					|  |  |  |     public void confirm(IcResiUserConfirmDTO dto) { | 
			
		
	
		
			
				
					|  |  |  |         baseDao.updateById(ConvertUtils.sourceToTarget(dto, IcResiUserConfirmEntity.class)); | 
			
		
	
		
			
				
					|  |  |  |         if (NumConstant.ONE_STR.equals(dto.getConfirmResult())) { | 
			
		
	
		
			
				
					|  |  |  |             //审核通过,修改居民信息
 | 
			
		
	
		
			
				
					|  |  |  |             IcResiUserConfirmEntity confirmEntity = baseDao.selectById(dto.getId()); | 
			
		
	
		
			
				
					|  |  |  |             if ("edit".equals(confirmEntity.getSubmitType())) { | 
			
		
	
		
			
				
					|  |  |  |                 IcResiUserEntity entity = ConvertUtils.sourceToTarget(confirmEntity, IcResiUserEntity.class); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setName(confirmEntity.getSurname() + confirmEntity.getName()); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setId(confirmEntity.getIcResiUserId()); | 
			
		
	
		
			
				
					|  |  |  |                 icResiUserDao.updateById(entity); | 
			
		
	
		
			
				
					|  |  |  |             } else if ("delete".equals(confirmEntity.getSubmitType())){ | 
			
		
	
		
			
				
					|  |  |  |                 IcResiUserEntity entity = new IcResiUserEntity(); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setId(confirmEntity.getIcResiUserId()); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setStatus(confirmEntity.getDeleteReason()); | 
			
		
	
		
			
				
					|  |  |  |                 icResiUserDao.updateById(entity); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |             //TODO 发送消息
 | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |