ソースを参照

手术结束时间范围优化

lihong 4 ヶ月 前
コミット
1bf9a6ac7c

+ 2 - 2
src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

@@ -1663,7 +1663,7 @@ public class SetlListUpldService {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,手术开始时间应在出入院时间范围内", item.getSsmc()));
                 }
 
-                if (item.getOpEndDate() != null && !cn.hutool.core.date.DateUtil.isIn(item.getOpEndDate(), setlinfoUpld.getAdmTime(), setlinfoUpld.getDscgTime())) {
+                if (item.getOpEndDate() != null && !cn.hutool.core.date.DateUtil.isIn(item.getOpEndDate(), cn.hutool.core.date.DateUtil.offsetDay(setlinfoUpld.getAdmTime(), -1), setlinfoUpld.getDscgTime())) {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,手术结束时间应在出入院时间范围内", item.getSsmc()));
                 }
 
@@ -1671,7 +1671,7 @@ public class SetlListUpldService {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,麻醉开始时间应在出入院时间范围内", item.getSsmc()));
                 }
 
-                if (item.getAnstEndDate() != null && !cn.hutool.core.date.DateUtil.isIn(item.getAnstEndDate(), setlinfoUpld.getAdmTime(), setlinfoUpld.getDscgTime())) {
+                if (item.getAnstEndDate() != null && !cn.hutool.core.date.DateUtil.isIn(item.getAnstEndDate(), cn.hutool.core.date.DateUtil.offsetDay(setlinfoUpld.getAdmTime(), -1), setlinfoUpld.getDscgTime())) {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,麻醉结束时间应在出入院时间范围内", item.getSsmc()));
                 }