| | |
| | | } |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加 |
| | | * |
| | |
| | | } |
| | | return Result.OK("添加成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 编辑 |
| | | * |
| | |
| | | equipmentPrecisionParametersService.updateById(equipmentPrecisionParameters); |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id删除 |
| | | * |
| | |
| | | equipmentPrecisionParametersService.removeById(id); |
| | | return Result.OK("删除成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | |
| | | this.equipmentPrecisionParametersService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("批量删除成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询 |
| | | * |
| | |
| | | return super.importExcel(request, response, EquipmentPrecisionParameters.class); |
| | | } |
| | | |
| | | @PutMapping("/submitBatch") |
| | | public Result<?> submitBatch(@RequestBody List<EquipmentPrecisionParameters> equipmentPrecisionParameters){ |
| | | equipmentPrecisionParametersService.saveOrUpdateBatch(equipmentPrecisionParameters); |
| | | return Result.OK("提交成功"); |
| | | } |
| | | |
| | | } |