From c83101eb62f5d4906b9c01ceea6b21a37f9e84d8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 18 十一月 2025 09:24:53 +0800
Subject: [PATCH] bug修复
---
ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java
index 46aae35..21359bf 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java
@@ -1,6 +1,7 @@
package com.ycl.platform.controller;
import annotation.Log;
+import com.ycl.exception.job.TaskException;
import com.ycl.platform.domain.entity.CheckTemplate;
import com.ycl.platform.domain.entity.CheckTemplateRule;
import com.ycl.platform.domain.query.CheckTemplateQuery;
@@ -12,6 +13,7 @@
import com.ycl.system.page.TableDataInfo;
import enumeration.BusinessType;
import io.swagger.annotations.ApiOperation;
+import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@@ -63,8 +65,7 @@
@PreAuthorize("@ss.hasPermi('check:template:add')")
@Log(title = "鏂板鑰冩牳妯℃澘", businessType = BusinessType.INSERT)
@PostMapping
- public AjaxResult add(@RequestBody @Validated CheckTemplateQuery checkTemplateDTO)
- {
+ public AjaxResult add(@RequestBody @Validated CheckTemplateQuery checkTemplateDTO) throws SchedulerException, TaskException {
return toAjax(checkTemplateService.insertCheckTemplate(checkTemplateDTO));
}
@@ -75,8 +76,7 @@
@PreAuthorize("@ss.hasPermi('check:template:copy')")
@Log(title = "澶嶅埗鑰冩牳妯℃澘", businessType = BusinessType.INSERT)
@PostMapping("/copy")
- public AjaxResult copy(@RequestBody CheckTemplateQuery checkTemplateDTO)
- {
+ public AjaxResult copy(@RequestBody CheckTemplateQuery checkTemplateDTO) throws SchedulerException, TaskException {
return toAjax(checkTemplateService.copyCheckTemplate(checkTemplateDTO));
}
@@ -86,8 +86,7 @@
@PreAuthorize("@ss.hasPermi('check:template:edit')")
@Log(title = "淇敼鑰冩牳妯℃澘", businessType = BusinessType.UPDATE)
@PutMapping
- public AjaxResult edit(@RequestBody CheckTemplateQuery checkTemplateDTO)
- {
+ public AjaxResult edit(@RequestBody CheckTemplateQuery checkTemplateDTO) throws SchedulerException, TaskException {
return checkTemplateService.updateCheckTemplate(checkTemplateDTO);
}
@@ -99,6 +98,7 @@
@PutMapping("/weight")
public AjaxResult editWeight(@RequestBody CheckTemplateRule checkTemplateRule)
{
+
return toAjax(checkTemplateRuleService.updateCheckTemplateRule(checkTemplateRule));
}
/**
@@ -107,8 +107,7 @@
@PreAuthorize("@ss.hasPermi('check:template:remove')")
@Log(title = "鍒犻櫎鑰冩牳妯℃澘", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
- public AjaxResult remove(@PathVariable String id)
- {
+ public AjaxResult remove(@PathVariable String id) throws SchedulerException {
return toAjax(checkTemplateService.deleteCheckTemplateById(Integer.parseInt(id)));
}
--
Gitblit v1.8.0