diff --git a/blade-ops/blade-develop/src/main/java/org/springblade/develop/controller/ModelController.java b/blade-ops/blade-develop/src/main/java/org/springblade/develop/controller/ModelController.java index f5f3e2cb..2dcbf729 100644 --- a/blade-ops/blade-develop/src/main/java/org/springblade/develop/controller/ModelController.java +++ b/blade-ops/blade-develop/src/main/java/org/springblade/develop/controller/ModelController.java @@ -112,7 +112,12 @@ public class ModelController extends BladeController { @ApiOperationSupport(order = 5) @ApiOperation(value = "新增或修改", notes = "传入model") public R submit(@Valid @RequestBody Model model) { - return R.status(modelService.saveOrUpdate(model)); + boolean temp = modelService.saveOrUpdate(model); + if (temp) { + return R.data(model); + } else { + return R.status(Boolean.FALSE); + } } /**