فهرست منبع

fix(评价信息):

his自动更新Bug
18339543638 2 سال پیش
والد
کامیت
fbe3858679
1فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 1 6
      nb-service/web-service/src/main/java/com/nb/web/service/bus/hospital/HospitalManager.java

+ 1 - 6
nb-service/web-service/src/main/java/com/nb/web/service/bus/hospital/HospitalManager.java

@@ -258,11 +258,7 @@ public class HospitalManager {
             }
             return;
         }
-        hisSchedule = singleHisExecutor.schedule(() -> {
-            scheduleHis();
-            singleHisExecutor.schedule(this::scheduleHis, updateConfig.getInterval(), TimeUnit.MINUTES);
-        }, updateConfig.getInterval(), TimeUnit.MINUTES);
-
+        hisSchedule = singleHisExecutor.scheduleAtFixedRate(this::scheduleHis, 0, updateConfig.getInterval(),TimeUnit.MINUTES);
     }
 
     /**
@@ -281,7 +277,6 @@ public class HospitalManager {
         List<BusInfusionHistoryEntity> records = infusionHistoryPage.getRecords();
         if(CollUtil.isNotEmpty(records)){
             records.stream().map(BusInfusionHistoryEntity::getPatientCode).collect(Collectors.toSet())
-
                     .parallelStream()
                     .forEach(patientCode->{
                         this.getScriptSession()