From 48644c2bc5e76185647a4f554200b429cbf4722a Mon Sep 17 00:00:00 2001 From: Claude Lee Date: Mon, 23 Sep 2024 16:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=BB=9A=E5=8A=A8=E8=AE=A1?= =?UTF-8?q?=E5=88=92controller=E5=92=8C=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/dhc/DhcRollPlanController.java | 28 +++++++++++++++++++ .../dhc/service/IDhcRollPlanTitleService.java | 2 ++ .../impl/DhcRollPlanTitleServiceImpl.java | 8 ++++++ 3 files changed, 38 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java new file mode 100644 index 0000000..4e08e9e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java @@ -0,0 +1,28 @@ +package com.ruoyi.web.controller.dhc; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.dhc.domain.DhcRollPlanTitle; +import com.ruoyi.dhc.service.IDhcRollPlanTitleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/dhc/rollPlan") +public class DhcRollPlanController extends BaseController { + + @Autowired + private IDhcRollPlanTitleService rollPlanTitleService; + + @PreAuthorize("@ss.hasPermi('dhc:plan:init')") + @PostMapping("/init") + @Log(title = "初始化滚动计划") + public String init(@RequestBody DhcRollPlanTitle params) { + return rollPlanTitleService.init(params); + } +} diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java index ef911b6..f4b2087 100644 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java +++ b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java @@ -58,4 +58,6 @@ public interface IDhcRollPlanTitleService * @return 结果 */ public int deleteDhcRollPlanTitleByRollPlanId(Long rollPlanId); + + String init(DhcRollPlanTitle params); } diff --git a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java index b794fd4..d45b1e8 100644 --- a/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java +++ b/ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java @@ -93,4 +93,12 @@ public class DhcRollPlanTitleServiceImpl implements IDhcRollPlanTitleService { return dhcRollPlanTitleMapper.deleteDhcRollPlanTitleByRollPlanId(rollPlanId); } + + @Override + public String init(DhcRollPlanTitle params) { + + + + return "OK"; + } }