liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java
@@ -100,7 +100,8 @@
     */
    //@PreAuthorize("@ss.hasPermi('monitor:job:edit')")
    @Log(title = "定时任务", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
@AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
@PostMapping("/edit")
    public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException {
        if (!CronUtils.isValid(job.getCronExpression())) {
            return error("修改任务'" + job.getJobName() + "'失败,Cron表达式不正确");