Ver Fonte

传染病上报定时任务

lighter há 1 mês atrás
pai
commit
0d30d530bc

+ 1 - 1
pom.xml

@@ -23,7 +23,7 @@
         <thyy-haikang>0.0.5</thyy-haikang>
         <thyy-emr-query>1.5.1</thyy-emr-query>
         <thyy-thirdpart-api>0.0.6</thyy-thirdpart-api>
-        <thyy-scheduled>0.1.5</thyy-scheduled>
+        <thyy-scheduled>0.1.7</thyy-scheduled>
         <thyy-plugins>0.0.1</thyy-plugins>
         <thyy-medinsur>0.0.1</thyy-medinsur>
         <!--   plugins     -->

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

@@ -60,6 +60,22 @@ public class MainBusinessTask {
         }
     }
 
+    @Scheduled(cron = "0 30 2 * * ?")
+    private void uploadCrbEmrAdmissionRecord() {
+        if (StrUtil.isNotBlank(thyy.getMainAddress())) {
+            String url = thyy.getMainAddress() + "/crbBase/uploadEmrAdmissionRecord";
+            template.getForObject(url, String.class);
+        }
+    }
+
+    @Scheduled(cron = "0 40 2 * * ?")
+    private void uploadCrbEmrEx() {
+        if (StrUtil.isNotBlank(thyy.getMainAddress())) {
+            String url = thyy.getMainAddress() + "/crbBase/uploadEmrEx";
+            template.getForObject(url, String.class);
+        }
+    }
+
     @Scheduled(cron = "0 0 6 * * ?")
     public void notifyDailyCount() {
         if (StrUtil.isNotBlank(thyy.getMainAddress())) {