|  |  | @ -136,7 +136,9 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
			
		
	
		
			
				
					|  |  |  |     public List<MyNatListResultDTO> myNatList(MyNatListFormDTO formDTO) { | 
			
		
	
		
			
				
					|  |  |  |         //1.根据token信息查询居民身份证号
 | 
			
		
	
		
			
				
					|  |  |  |         UserBaseInfoResultDTO dto = userBaseInfoDao.selectListByUserIdList(formDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setIdCard(dto.getIdNum()); | 
			
		
	
		
			
				
					|  |  |  |         if (null != dto) { | 
			
		
	
		
			
				
					|  |  |  |             formDTO.setIdCard(dto.getIdNum()); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //2.查询当前人员创建的或该身份证号录入的核算检测数据(居民端录入、数字平台录入、数字平台导入、数字平台同步的)
 | 
			
		
	
		
			
				
					|  |  |  |         List<MyNatListResultDTO> resultList = baseDao.getMyNatList(formDTO); | 
			
		
	
		
			
				
					|  |  |  |         return resultList; | 
			
		
	
	
		
			
				
					|  |  | @ -162,7 +164,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
			
		
	
		
			
				
					|  |  |  |             PageInfo<NatListResultDTO> data = PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.isPage()) | 
			
		
	
		
			
				
					|  |  |  |                     .doSelectPageInfo(() -> baseDao.getNatList(formDTO)); | 
			
		
	
		
			
				
					|  |  |  |             return new PageData(data.getList(), data.getTotal()); | 
			
		
	
		
			
				
					|  |  |  |         } else if ("current".equals(formDTO.getOrgType())) { | 
			
		
	
		
			
				
					|  |  |  |         } else if ("all".equals(formDTO.getOrgType())) { | 
			
		
	
		
			
				
					|  |  |  |             //客户下数据
 | 
			
		
	
		
			
				
					|  |  |  |             PageInfo<NatListResultDTO> data = PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize(), formDTO.isPage()) | 
			
		
	
		
			
				
					|  |  |  |                     .doSelectPageInfo(() -> baseDao.getCustomerNatList(formDTO)); | 
			
		
	
	
		
			
				
					|  |  | @ -242,7 +244,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
			
		
	
		
			
				
					|  |  |  |         //1.确定删除则需要删除基础数据以及所有可能存在的关系数据,物理删除业务数据
 | 
			
		
	
		
			
				
					|  |  |  |         if (baseDao.delById(formDTO.getIcNatId()) < NumConstant.ONE) { | 
			
		
	
		
			
				
					|  |  |  |             log.error(String.format("数据删除失败,核酸记录Id->%s", formDTO.getIcNatId())); | 
			
		
	
		
			
				
					|  |  |  |             throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "数据操作失败"); | 
			
		
	
		
			
				
					|  |  |  |             throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "数据删除失败"); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //关系数据删除
 | 
			
		
	
		
			
				
					|  |  |  |         icNatRelationDao.delRelation(formDTO.getIcNatId(), null); | 
			
		
	
	
		
			
				
					|  |  | @ -267,7 +269,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
			
		
	
		
			
				
					|  |  |  |             throw new EpmetException(String.format("查询工作人员%s缓存信息失败...", formDTO.getUserId())); | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //2.不管是否已存在关系数据都是先删后增
 | 
			
		
	
		
			
				
					|  |  |  |         icNatRelationDao.delRelation(formDTO.getIcNatId(), null); | 
			
		
	
		
			
				
					|  |  |  |         icNatRelationDao.delRelation(formDTO.getIcNatId(), staffInfo.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  |         //3.新增关系数据
 | 
			
		
	
		
			
				
					|  |  |  |         IcNatRelationEntity relationEntity = new IcNatRelationEntity(); | 
			
		
	
		
			
				
					|  |  |  |         relationEntity.setCustomerId(formDTO.getCustomerId()); | 
			
		
	
	
		
			
				
					|  |  | 
 |