|
|
@ -94,6 +94,10 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
|
private CustomerFootBarService customerFootBarService; |
|
|
|
@Resource |
|
|
|
private RegisterRelationDao registerRelationDao; |
|
|
|
@Resource |
|
|
|
private IcPointVaccinesInoculationDao pointVaccinesInoculationDao; |
|
|
|
@Resource |
|
|
|
private IcPointNucleicMonitoringDao pointNucleicMonitoringDao; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据UserIds查询 |
|
|
@ -923,4 +927,48 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
|
List<NowStatsDataResultDTO> list = registerRelationDao.selectNowResiUser(formDTO); |
|
|
|
return list; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Integer countVaccinePoint(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
|
query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds) |
|
|
|
.or() |
|
|
|
.eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId)); |
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
|
return pointVaccinesInoculationDao.selectCount(query); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Integer countNucleicPoint(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
|
LambdaQueryWrapper<IcPointNucleicMonitoringEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(IcPointNucleicMonitoringEntity::getCustomerId, customerId); |
|
|
|
query.and(w -> w.likeRight(IcPointNucleicMonitoringEntity::getPids, staffOrgIds) |
|
|
|
.or() |
|
|
|
.eq(IcPointNucleicMonitoringEntity::getOrgId, agencyId)); |
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointNucleicMonitoringEntity::getName, search); |
|
|
|
return pointNucleicMonitoringDao.selectCount(query); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<IcPointVaccinesInoculationEntity> listVaccinePoints(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
|
query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds) |
|
|
|
.or() |
|
|
|
.eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId)); |
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
|
return pointVaccinesInoculationDao.selectList(query); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<IcPointNucleicMonitoringEntity> listNucleicPoints(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
|
LambdaQueryWrapper<IcPointNucleicMonitoringEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(IcPointNucleicMonitoringEntity::getCustomerId, customerId); |
|
|
|
query.and(w -> w.likeRight(IcPointNucleicMonitoringEntity::getPids, staffOrgIds) |
|
|
|
.or() |
|
|
|
.eq(IcPointNucleicMonitoringEntity::getOrgId, agencyId)); |
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointNucleicMonitoringEntity::getName, search); |
|
|
|
return pointNucleicMonitoringDao.selectList(query); |
|
|
|
} |
|
|
|
} |
|
|
|