|
@@ -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));
|
|
|
}
|
|
|
|