diff --git a/postdischarge-quartz/src/main/java/com/xinelu/quartz/service/impl/subscribeTaskServiceImpl.java b/postdischarge-quartz/src/main/java/com/xinelu/quartz/service/impl/subscribeTaskServiceImpl.java index 990efc22..bfc1cec7 100644 --- a/postdischarge-quartz/src/main/java/com/xinelu/quartz/service/impl/subscribeTaskServiceImpl.java +++ b/postdischarge-quartz/src/main/java/com/xinelu/quartz/service/impl/subscribeTaskServiceImpl.java @@ -61,7 +61,7 @@ public class subscribeTaskServiceImpl implements SubscribeTaskService { if (Objects.nonNull(patientVO.getDischargeTime())) { localDate = patientVO.getDischargeTime().plusDays(signPatientManageRouteNode.getRouteNodeDay()); } - if (Objects.nonNull(patientVO.getVisitDate())) { + if (Objects.isNull(patientVO.getDischargeTime()) && Objects.nonNull(patientVO.getVisitDate())) { localDate = patientVO.getVisitDate().plusDays(signPatientManageRouteNode.getRouteNodeDay()); } if (Objects.isNull(localDate)) {