From 30ea2c33af092769b4969e7cf9d8209b5d8267ad Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 15 五月 2026 16:18:24 +0800
Subject: [PATCH] 【市一】湖滨单独发送
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskRuleController.java | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 118 insertions(+), 0 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskRuleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskRuleController.java
new file mode 100644
index 0000000..97d4331
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskRuleController.java
@@ -0,0 +1,118 @@
+package com.ruoyi.web.controller.smartor;
+
+import java.util.List;
+
+import com.ruoyi.common.annotation.AddOrgId;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.smartor.domain.ServiceTaskRule;
+import com.smartor.service.IServiceTaskRuleService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 浠诲姟鎵ц瑙勫垯Controller
+ *
+ * @author lihu
+ * @date 2026-05-15
+ */
+@Api("浠诲姟鎵ц瑙勫垯")
+@RestController
+@RequestMapping("/smartor/taskrule")
+public class ServiceTaskRuleController extends BaseController
+{
+ @Autowired
+ private IServiceTaskRuleService serviceTaskRuleService;
+
+ /**
+ * 鏌ヨ浠诲姟鎵ц瑙勫垯鍒楄〃
+ */
+ @ApiOperation("鏌ヨ浠诲姟鎵ц瑙勫垯鍒楄〃")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:list')")
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("/list")
+ public TableDataInfo list(@RequestBody ServiceTaskRule serviceTaskRule)
+ {
+ startPage();
+ List<ServiceTaskRule> list = serviceTaskRuleService.selectServiceTaskRuleList(serviceTaskRule);
+ return getDataTable(list);
+ }
+
+ /**
+ * 瀵煎嚭浠诲姟鎵ц瑙勫垯鍒楄〃
+ */
+ @ApiOperation("瀵煎嚭浠诲姟鎵ц瑙勫垯鍒楄〃")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:export')")
+ @Log(title = "浠诲姟鎵ц瑙勫垯", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, ServiceTaskRule serviceTaskRule)
+ {
+ List<ServiceTaskRule> list = serviceTaskRuleService.selectServiceTaskRuleList(serviceTaskRule);
+ ExcelUtil<ServiceTaskRule> util = new ExcelUtil<ServiceTaskRule>(ServiceTaskRule.class);
+ util.exportExcel(response, list, "浠诲姟鎵ц瑙勫垯鏁版嵁");
+ }
+
+ /**
+ * 鑾峰彇浠诲姟鎵ц瑙勫垯璇︾粏淇℃伅
+ */
+ @ApiOperation("鑾峰彇浠诲姟鎵ц瑙勫垯璇︾粏淇℃伅")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:query')")
+ @GetMapping(value = "/getInfo/{id}")
+ public AjaxResult getInfo(@PathVariable("id") Long id)
+ {
+ return success(serviceTaskRuleService.selectServiceTaskRuleById(id));
+ }
+
+ /**
+ * 鏂板浠诲姟鎵ц瑙勫垯
+ */
+ @ApiOperation("鏂板浠诲姟鎵ц瑙勫垯")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:add')")
+ @Log(title = "浠诲姟鎵ц瑙勫垯", businessType = BusinessType.INSERT)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("/add")
+ public AjaxResult add(@RequestBody ServiceTaskRule serviceTaskRule)
+ {
+ return toAjax(serviceTaskRuleService.insertServiceTaskRule(serviceTaskRule));
+ }
+
+ /**
+ * 淇敼浠诲姟鎵ц瑙勫垯
+ */
+ @ApiOperation("淇敼浠诲姟鎵ц瑙勫垯")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:edit')")
+ @Log(title = "浠诲姟鎵ц瑙勫垯", businessType = BusinessType.UPDATE)
+ @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
+ @PostMapping("/edit")
+ public AjaxResult edit(@RequestBody ServiceTaskRule serviceTaskRule)
+ {
+ return toAjax(serviceTaskRuleService.updateServiceTaskRule(serviceTaskRule));
+ }
+
+ /**
+ * 鍒犻櫎浠诲姟鎵ц瑙勫垯
+ */
+ @ApiOperation("鍒犻櫎浠诲姟鎵ц瑙勫垯")
+ //@PreAuthorize("@ss.hasPermi('smartor:rule:remove')")
+ @Log(title = "浠诲姟鎵ц瑙勫垯", businessType = BusinessType.DELETE)
+ @GetMapping("/remove/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids)
+ {
+ return toAjax(serviceTaskRuleService.deleteServiceTaskRuleByIds(ids));
+ }
+}
--
Gitblit v1.9.3