|
@@ -353,7 +353,6 @@ public class ColumnResultManagementFacade {
|
|
|
List<GetStandardvalueInfoDTO> standardvalueList = new ArrayList<>();
|
|
|
List<String> behospitalCodeList = new ArrayList<>();
|
|
|
Date startDate = DateUtil.addDate(DateUtil.now(), -1);
|
|
|
- Date endDate = DateUtil.now();
|
|
|
//先获取非空的所有字段校验规则
|
|
|
List<NonnullInfo> nonnullInfos = getNonnullInfo();
|
|
|
if (ListUtil.isNotEmpty(nonnullInfos)) {
|
|
@@ -361,7 +360,7 @@ public class ColumnResultManagementFacade {
|
|
|
for (NonnullInfo nonnullInfo : nonnullInfos) {
|
|
|
Date gmtModified = nonnullInfo.getGmtModified();
|
|
|
//判断修改时间是否为当天
|
|
|
- if (gmtModified.after(startDate) && endDate.after(gmtModified)) {
|
|
|
+ if (cn.hutool.core.date.DateUtil.isSameDay(startDate, gmtModified)) {
|
|
|
//如果是今天则将规则存入一个对象集合中待处理
|
|
|
nonnullInfoList.add(nonnullInfo);
|
|
|
} else {
|
|
@@ -375,7 +374,7 @@ public class ColumnResultManagementFacade {
|
|
|
//遍历所有规则
|
|
|
for (GetRegular getRegular : regularMappings) {
|
|
|
Date gmtModified = getRegular.getGmtModified();
|
|
|
- if (gmtModified.after(startDate) && endDate.after(gmtModified)) {
|
|
|
+ if (cn.hutool.core.date.DateUtil.isSameDay(startDate, gmtModified)) {
|
|
|
//如果是今天则将规则存入一个对象集合中待处理
|
|
|
regularList.add(getRegular);
|
|
|
} else {
|
|
@@ -389,7 +388,7 @@ public class ColumnResultManagementFacade {
|
|
|
//遍历所有规则
|
|
|
for (GetStandardvalueInfoDTO standardvalueInfoDTO : standardvalueInfo) {
|
|
|
Date gmtModified = standardvalueInfoDTO.getGmtModified();
|
|
|
- if (gmtModified.after(startDate) && endDate.after(gmtModified)) {
|
|
|
+ if (cn.hutool.core.date.DateUtil.isSameDay(startDate, gmtModified)) {
|
|
|
//如果是今天则将规则存入一个对象集合中待处理
|
|
|
standardvalueList.add(standardvalueInfoDTO);
|
|
|
} else {
|
|
@@ -399,8 +398,13 @@ public class ColumnResultManagementFacade {
|
|
|
}
|
|
|
//先判断是否存在规则有修改
|
|
|
if (ListUtil.isNotEmpty(nonnullInfoList) || ListUtil.isNotEmpty(standardvalueList) || ListUtil.isNotEmpty(regularList)) {
|
|
|
+ String start="2021-01-01 03:08:38";
|
|
|
+ String end="2021-01-30 03:08:38";
|
|
|
+ Date dateStart = DateUtil.parseDateTime(start);
|
|
|
+ Date dateEnd = DateUtil.parseDateTime(end);
|
|
|
//获取30天内所有病历
|
|
|
- List<BehospitalInfo> behospitalInfos = getBehospitalInfos(DateUtil.addDate(DateUtil.now(), -30), DateUtil.now(), hospitalId);
|
|
|
+ // List<BehospitalInfo> behospitalInfos = getBehospitalInfos(DateUtil.addDate(DateUtil.now(), -30), DateUtil.now(), hospitalId);
|
|
|
+ List<BehospitalInfo> behospitalInfos = getBehospitalInfos(dateStart, dateEnd, hospitalId);
|
|
|
if (ListUtil.isNotEmpty(behospitalInfos)) {
|
|
|
for (BehospitalInfo behospitalInfo : behospitalInfos) {
|
|
|
behospitalCodeList.add(behospitalInfo.getBehospitalCode());
|