Pārlūkot izejas kodu

去除自动刷新

0027005599 2 gadi atpakaļ
vecāks
revīzija
4c741c2e29

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/ruleengine/projectcache/HisMedicalProjectCache.java

@@ -44,7 +44,7 @@ public class HisMedicalProjectCache {
     @Autowired
     IOperativeItemsService operativeItemsService;
 
-    @PostConstruct
+//    @PostConstruct
     public void initHisMedicalProjectCache() {
         long count = medicalInsuranceDrugsService.lambdaQuery().isNotNull(MedicalInsuranceDrugs::getItemIdHosp).isNotNull(MedicalInsuranceDrugs::getMedicineCode).count();
 

+ 11 - 2
jeecg-module-system/jeecg-system-start/src/test/java/org/jeecg/AfterwardsAuditDataTest.java

@@ -2,10 +2,12 @@ package org.jeecg;
 
 import org.jeecg.modules.medical.entity.AfterwardsAudit;
 import org.jeecg.modules.medical.entity.AfterwardsAuditDetail;
+import org.jeecg.modules.medical.job.AfterWaringLogTestJob;
 import org.jeecg.modules.medical.service.IAfterwardsAuditDetailService;
 import org.jeecg.modules.medical.service.IAfterwardsAuditService;
 import org.junit.Test;
 import org.junit.runner.RunWith;
+import org.quartz.JobExecutionException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.junit4.SpringRunner;
@@ -53,8 +55,15 @@ public class AfterwardsAuditDataTest {
     private IAfterwardsAuditService afterwardsAuditService;
     @Autowired
     private IAfterwardsAuditDetailService afterwardsAuditDetailService;
-
-
+    @Autowired
+    private AfterWaringLogTestJob afterWaringLogTestJob;
+    public void testJob(){
+        try {
+            afterWaringLogTestJob.execute(null);
+        } catch (JobExecutionException e) {
+            e.printStackTrace();
+        }
+    }
 
     @Test
     public void generateAfterwardsAuditData() {