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