Commit 1872dcec authored by duanruiming's avatar duanruiming

[add] 策略库删除

parent 59382617
...@@ -8,6 +8,7 @@ import net.wanji.opt.synthesis.pojo.StrategyControlDetailList; ...@@ -8,6 +8,7 @@ import net.wanji.opt.synthesis.pojo.StrategyControlDetailList;
import net.wanji.opt.synthesis.pojo.StrategyFactoryEntity; import net.wanji.opt.synthesis.pojo.StrategyFactoryEntity;
import net.wanji.opt.synthesis.pojo.vo.StrategyControlVO; import net.wanji.opt.synthesis.pojo.vo.StrategyControlVO;
import net.wanji.opt.synthesis.service.StrategyControlService; import net.wanji.opt.synthesis.service.StrategyControlService;
import org.apache.ibatis.annotations.Param;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -163,12 +164,11 @@ public class StrategyControlController { ...@@ -163,12 +164,11 @@ public class StrategyControlController {
@ApiOperation(value = "策略管理计划保存", notes = "策略管理计划列表查询", @ApiOperation(value = "策略管理计划保存", notes = "策略管理计划列表查询",
response = JsonViewObject.class, response = JsonViewObject.class,
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON) produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@PostMapping(value = "/strategyFactoryDel", @GetMapping(value = "/strategyFactoryDel")
produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "OK", response = StrategyFactoryEntity.class), @ApiResponse(code = 200, message = "OK", response = StrategyFactoryEntity.class),
}) })
public JsonViewObject strategyFactoryDel(@RequestBody Integer id) throws Exception { public JsonViewObject strategyFactoryDel(@Param("id") Integer id) throws Exception {
return strategyControlService.strategyFactoryDel(id); return strategyControlService.strategyFactoryDel(id);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment