|
@@ -103,7 +103,7 @@ public class BlockLossManagementFacade {
|
|
|
//====1.获取已丢失状态记录,去数据库中对比判断是否补录
|
|
|
List<BlocklossResult> lossResults = blocklossResultFacade.list(new QueryWrapper<BlocklossResult>()
|
|
|
.ge(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
- .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
+ .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()));
|
|
|
Map<String, List<BlocklossResult>> lossResultMap = null;
|
|
@@ -135,7 +135,7 @@ public class BlockLossManagementFacade {
|
|
|
List<String> dataBaseBehospitalCodes = behospitalInfoFacade.list(new QueryWrapper<BehospitalInfo>()
|
|
|
.select("behospital_code")
|
|
|
.ge(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
- .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
+ .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()))
|
|
|
.stream().map(BehospitalInfo::getBehospitalCode).collect(Collectors.toList());
|
|
@@ -143,7 +143,7 @@ public class BlockLossManagementFacade {
|
|
|
List<String> dataBaseHomePageIds = homePageFacade.list(new QueryWrapper<HomePage>()
|
|
|
.select("home_page_id")
|
|
|
.ge(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
- .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
+ .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()))
|
|
|
.stream().map(HomePage::getHomePageId).collect(Collectors.toList());
|
|
@@ -152,7 +152,7 @@ public class BlockLossManagementFacade {
|
|
|
List<String> dataBaseRecIds = medicalRecordFacade.list(new QueryWrapper<MedicalRecord>()
|
|
|
.select("rec_id")
|
|
|
.ge(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
- .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getStartDate())
|
|
|
+ .le(dataCompareVO.getStartDate() != null, "gmt_create", dataCompareVO.getEndDate())
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey()))
|
|
|
.stream().map(MedicalRecord::getRecId).collect(Collectors.toList());
|
|
@@ -548,22 +548,22 @@ public class BlockLossManagementFacade {
|
|
|
Integer codeNum = behospitalInfoFacade.count(new QueryWrapper<BehospitalInfo>()
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate())
|
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate()));
|
|
|
+ .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getEndDate()));
|
|
|
Integer homePageNum = homePageFacade.count(new QueryWrapper<HomePage>()
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate())
|
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate()));
|
|
|
+ .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getEndDate()));
|
|
|
Integer recNum = medicalRecordFacade.count(new QueryWrapper<MedicalRecord>()
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate())
|
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate()));
|
|
|
+ .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getEndDate()));
|
|
|
blockLossTypeGatherDTO.setRealNum(codeNum + homePageNum + recNum);
|
|
|
//获取该时间段的丢失数量
|
|
|
List<BlocklossResult> blocklossResults = blocklossResultFacade.list(new QueryWrapper<BlocklossResult>()
|
|
|
.eq("hospital_id", SysUserUtils.getCurrentHospitalId())
|
|
|
.eq("status", LossStatusEnum.IS_LOSS.getKey())
|
|
|
.ge(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate())
|
|
|
- .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getStartDate()));
|
|
|
+ .le(blockLossTypeGatherVO.getStartDate() != null, "gmt_create", blockLossTypeGatherVO.getEndDate()));
|
|
|
Integer allLossNum = blocklossResults.size();
|
|
|
blockLossTypeGatherDTO.setAllLossNum(allLossNum);
|
|
|
blockLossTypeGatherDTO.setHisNum(logNum + allLossNum);
|