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