|
@ -932,9 +932,9 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
public Integer countVaccinePoint(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
public Integer countVaccinePoint(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds) |
|
|
//query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds)
|
|
|
.or() |
|
|
// .or()
|
|
|
.eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId)); |
|
|
// .eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId));
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
return pointVaccinesInoculationDao.selectCount(query); |
|
|
return pointVaccinesInoculationDao.selectCount(query); |
|
|
} |
|
|
} |
|
@ -954,9 +954,9 @@ public class EpmetUserServiceImpl implements EpmetUserService { |
|
|
public List<IcPointVaccinesInoculationEntity> listVaccinePoints(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
public List<IcPointVaccinesInoculationEntity> listVaccinePoints(String customerId, String agencyId, String staffOrgIds, String search) { |
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<IcPointVaccinesInoculationEntity> query = new LambdaQueryWrapper<>(); |
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
query.eq(IcPointVaccinesInoculationEntity::getCustomerId, customerId); |
|
|
query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds) |
|
|
//query.and(w -> w.likeRight(IcPointVaccinesInoculationEntity::getPids, staffOrgIds)
|
|
|
.or() |
|
|
// .or()
|
|
|
.eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId)); |
|
|
// .eq(IcPointVaccinesInoculationEntity::getOrgId, agencyId));
|
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
query.like(StringUtils.isNotBlank(search), IcPointVaccinesInoculationEntity::getName, search); |
|
|
return pointVaccinesInoculationDao.selectList(query); |
|
|
return pointVaccinesInoculationDao.selectList(query); |
|
|
} |
|
|
} |
|
|