From f17d8cf70b53d33a0b5ff49ba1cf4b4cf842c10a Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期二, 26 三月 2024 09:01:40 +0800
Subject: [PATCH] -

---
 jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java                                         |    4 ++--
 jcdm-main/pom.xml                                                                                  |    5 +++++
 jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java |   18 ++++++++++++++++++
 jcdm-ui/src/views/main/kb/stationTerminal/index.vue                                                |    2 +-
 4 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/jcdm-main/pom.xml b/jcdm-main/pom.xml
index 94a7bfc..e2a3278 100644
--- a/jcdm-main/pom.xml
+++ b/jcdm-main/pom.xml
@@ -72,6 +72,11 @@
             <version>3.0.5</version>
         </dependency>
         <!-- opc end-->
+
+        <dependency>
+            <groupId>com.jcdm</groupId>
+            <artifactId>jcdm-quartz</artifactId>
+        </dependency>
     </dependencies>
 
 </project>
\ No newline at end of file
diff --git a/jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java b/jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java
index a603a6d..9fc4a01 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java
@@ -2,6 +2,11 @@
 
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
+
+import com.jcdm.common.exception.job.TaskException;
+import com.jcdm.quartz.domain.SysJob;
+import com.jcdm.quartz.service.ISysJobService;
+import org.quartz.SchedulerException;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -33,6 +38,9 @@
 {
     @Autowired
     private IEmInspectionPlanService emInspectionPlanService;
+
+    @Autowired
+    private ISysJobService iSysJobService;
 
     /**
      * 鏌ヨ鐐规淇濆吇璁″垝鍒楄〃
@@ -77,6 +85,16 @@
     @PostMapping
     public AjaxResult add(@RequestBody EmInspectionPlan emInspectionPlan)
     {
+//        Long l = 4L;
+//        SysJob sysJob = iSysJobService.selectJobById(l);
+//        String invoke = "('"+emInspectionPlan.getPlanCode()+"')";
+//        sysJob.setInvokeTarget("ryTask.inspectionPlanInfoHour"+invoke);
+//        sysJob.setStatus("0");
+//        try {
+//            iSysJobService.updateJob(sysJob);
+//        } catch (Exception e) {
+//            throw new RuntimeException(e);
+//        }
         return toAjax(emInspectionPlanService.insertEmInspectionPlan(emInspectionPlan));
     }
 
diff --git a/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java b/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java
index 72e680d..270d41e 100644
--- a/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java
+++ b/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java
@@ -26,7 +26,7 @@
         System.out.println("鎵ц鏃犲弬鏂规硶");
     }
 
-    public void inspectionPlanInfoHour(){
-
+    public void inspectionPlanInfoHour(String planCode){
+        System.out.println("鑾峰彇鍒拌鍒掔紪鍙锋槸----------------------------------"+planCode);
     }
 }
diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
index 8fbc4da..94e4f63 100644
--- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue
@@ -577,7 +577,7 @@
         console.log('璁剧疆宸ヤ綅缂栫爜' + this.headContent.processesCode)
 
       });
-      // this.conCom()
+      this.conCom()
       console.log('websocket杩炴帴宸ヤ綅涓�' + this.headContent.processesCode)
       const wsuri = this.url + this.headContent.processesCode;
       this.ws = new WebSocket(wsuri);

--
Gitblit v1.9.3