Przeglądaj źródła

Merge branch 'master' into 'master'

传染病门诊病历定时任务

See merge request xiao/thyy-business-center!1
huangshuhua 1 miesiąc temu
rodzic
commit
903d0c0344

+ 8 - 0
thyy-scheduled/src/main/java/org/thyy/scheduled/task/MainBusinessTask.java

@@ -76,6 +76,14 @@ public class MainBusinessTask {
         }
     }
 
+    @Scheduled(cron = "0 30 1 * * ?")
+    public void uploadEmrOutpatientRecordByClock() {
+        if (StrUtil.isNotBlank(thyy.getMainAddress())) {
+            String url = thyy.getMainAddress() + "/crbBase/uploadEmrOutpatientRecordByClock";
+            template.getForObject(url, String.class);
+        }
+    }
+
     @Scheduled(cron = "0 0 6 * * ?")
     public void notifyDailyCount() {
         if (StrUtil.isNotBlank(thyy.getMainAddress())) {