Browse Source

添加滚动计划controller和初始化方法

master
Claude Lee 2 months ago
parent
commit
48644c2bc5
  1. 28
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java
  2. 2
      ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java
  3. 8
      ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java

28
ruoyi-admin/src/main/java/com/ruoyi/web/controller/dhc/DhcRollPlanController.java

@ -0,0 +1,28 @@ @@ -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);
}
}

2
ruoyi-plan/src/main/java/com/ruoyi/dhc/service/IDhcRollPlanTitleService.java

@ -58,4 +58,6 @@ public interface IDhcRollPlanTitleService @@ -58,4 +58,6 @@ public interface IDhcRollPlanTitleService
* @return 结果
*/
public int deleteDhcRollPlanTitleByRollPlanId(Long rollPlanId);
String init(DhcRollPlanTitle params);
}

8
ruoyi-plan/src/main/java/com/ruoyi/dhc/service/impl/DhcRollPlanTitleServiceImpl.java

@ -93,4 +93,12 @@ public class DhcRollPlanTitleServiceImpl implements IDhcRollPlanTitleService @@ -93,4 +93,12 @@ public class DhcRollPlanTitleServiceImpl implements IDhcRollPlanTitleService
{
return dhcRollPlanTitleMapper.deleteDhcRollPlanTitleByRollPlanId(rollPlanId);
}
@Override
public String init(DhcRollPlanTitle params) {
return "OK";
}
}

Loading…
Cancel
Save