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"; + } }