From 1e39c55183c1f54d1587bf3a86b4c2210bcd592e Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期四, 28 三月 2024 15:23:19 +0800
Subject: [PATCH] chenge plan

---
 jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlan/controller/EmInspectionPlanController.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

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));
     }
 

--
Gitblit v1.9.3