|
@@ -107,8 +107,6 @@ public class BlockLossManagementFacade {
|
|
//====1.获取已丢失状态记录,去数据库中对比判断是否补录
|
|
//====1.获取已丢失状态记录,去数据库中对比判断是否补录
|
|
List<BlocklossResult> lossResults = blocklossResultFacade.list(new QueryWrapper<BlocklossResult>()
|
|
List<BlocklossResult> lossResults = blocklossResultFacade.list(new QueryWrapper<BlocklossResult>()
|
|
.select("id,behospital_code,rec_id,loss_type,loss_way")
|
|
.select("id,behospital_code,rec_id,loss_type,loss_way")
|
|
- // .ge(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
|
- // .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
|
.eq(SysUserUtils.getCurrentHospitalId() != null, "hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
.eq(SysUserUtils.getCurrentHospitalId() != null, "hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()));
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()));
|
|
@@ -152,9 +150,9 @@ public class BlockLossManagementFacade {
|
|
//病历数据
|
|
//病历数据
|
|
List<String> dataBaseBehospitalCodes = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
List<String> dataBaseBehospitalCodes = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
.select("behospital_code")
|
|
.select("behospital_code")
|
|
- .ge(dataCompareVO.getStartDate() != null && dataCompareVO.getBehospitalCode() == null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
|
- .le(dataCompareVO.getEndDate() != null && dataCompareVO.getBehospitalCode() == null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
|
- .eq(dataCompareVO.getBehospitalCode() != null, "behospital_code", dataCompareVO.getBehospitalCode())
|
|
|
|
|
|
+ .ge(dataCompareVO.getStartDate() != null && StringUtil.isBlank(dataCompareVO.getBehospitalCode()), "gmt_create", dataCompareVO.getStartDate())
|
|
|
|
+ .le(dataCompareVO.getEndDate() != null && StringUtil.isBlank(dataCompareVO.getBehospitalCode()), "gmt_create", dataCompareVO.getEndDate())
|
|
|
|
+ .eq(StringUtil.isNotBlank(dataCompareVO.getBehospitalCode()), "behospital_code", dataCompareVO.getBehospitalCode())
|
|
.eq(SysUserUtils.getCurrentHospitalId() != null, "hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
.eq(SysUserUtils.getCurrentHospitalId() != null, "hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()))
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()))
|
|
.stream().map(BehospitalInfo::getBehospitalCode).collect(Collectors.toList());
|
|
.stream().map(BehospitalInfo::getBehospitalCode).collect(Collectors.toList());
|
|
@@ -624,7 +622,7 @@ public class BlockLossManagementFacade {
|
|
List<String> codes = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
List<String> codes = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId() != null ? SysUserUtils.getCurrentHospitalId() : 0)
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId() != null ? SysUserUtils.getCurrentHospitalId() : 0)
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getStartDate())
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getStartDate())
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getEndDate()))
|
|
|
|
|
|
+ .le(blockLossTypeGatherVO.getEndDate() != null, "behospital_date", blockLossTypeGatherVO.getEndDate()))
|
|
.stream().map(BehospitalInfo::getBehospitalCode).collect(Collectors.toList());
|
|
.stream().map(BehospitalInfo::getBehospitalCode).collect(Collectors.toList());
|
|
|
|
|
|
Integer codeNum = codes.size();
|
|
Integer codeNum = codes.size();
|
|
@@ -645,7 +643,7 @@ public class BlockLossManagementFacade {
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId() != null ? SysUserUtils.getCurrentHospitalId() : 0)
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId() != null ? SysUserUtils.getCurrentHospitalId() : 0)
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getStartDate())
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getStartDate())
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "behospital_date", blockLossTypeGatherVO.getEndDate()));
|
|
|
|
|
|
+ .le(blockLossTypeGatherVO.getEndDate() != null, "behospital_date", blockLossTypeGatherVO.getEndDate()));
|
|
Integer allLossNum = blocklossResults.size();
|
|
Integer allLossNum = blocklossResults.size();
|
|
blockLossTypeGatherDTO.setAllLossNum(allLossNum);
|
|
blockLossTypeGatherDTO.setAllLossNum(allLossNum);
|
|
// blockLossTypeGatherDTO.setHisNum(codeNum + homePageNum + recNum + allLossNum);
|
|
// blockLossTypeGatherDTO.setHisNum(codeNum + homePageNum + recNum + allLossNum);
|