| | |
| | | |
| | | 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; |
| | |
| | | { |
| | | @Autowired |
| | | private IEmInspectionPlanService emInspectionPlanService; |
| | | |
| | | @Autowired |
| | | private ISysJobService iSysJobService; |
| | | |
| | | /** |
| | | * 查询点检保养计划列表 |
| | |
| | | @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)); |
| | | } |
| | | |