Explorar o código

策略步骤接口联调

lv.wenbin hai 9 meses
pai
achega
b2f85ffe42

+ 2 - 2
ems-cloud/ems-modules/ems-server/src/main/java/com/ruoyi/ems/controller/OpEnergyStrategyController.java

@@ -169,7 +169,7 @@ public class OpEnergyStrategyController extends BaseController {
      * @return 步骤列表
      */
     @PostMapping(value = "/step")
-    public AjaxResult addStrategyStep(OpEnergyStrategyStep strategyStep) {
+    public AjaxResult addStrategyStep(@RequestBody OpEnergyStrategyStep strategyStep) {
         return toAjax(stepService.insertStep(strategyStep));
     }
 
@@ -191,7 +191,7 @@ public class OpEnergyStrategyController extends BaseController {
      * @return 步骤列表
      */
     @PutMapping(value = "/step")
-    public AjaxResult editStrategyStep(OpEnergyStrategyStep strategyStep) {
+    public AjaxResult editStrategyStep(@RequestBody OpEnergyStrategyStep strategyStep) {
         return toAjax(stepService.updateStep(strategyStep));
     }