|
|
@@ -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()
|