| | |
| | | @ApiOperation(value="保养标准-编辑", notes="保养标准-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamMaintenanceStandardRequest standardRequest) { |
| | | // eamMaintenanceStandardService.updateById(eamMaintenanceStandard); |
| | | if(standardRequest == null){ |
| | | return Result.error("添加的对象不能为空!"); |
| | | } |
| | | if(CollectionUtil.isEmpty(standardRequest.getTableDetailList())) { |
| | | return Result.error("保养项不能为空!"); |
| | | } |
| | | boolean b = eamMaintenanceStandardService.editMaintenanceStandard(standardRequest); |
| | | if(!b) { |
| | | return Result.error("编辑失败!"); |
| | | } |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |