| | |
| | | DeviceRepairDto byId = deviceRepairService.detailById(id); |
| | | return AjaxResult.success(byId); |
| | | } |
| | | // |
| | | // @ApiOperation("根据id查询附件") |
| | | // @GetMapping("/{deviceId}") |
| | | // public AjaxResult deviceId(@PathVariable Long id) { |
| | | // DeviceRepairDto byId = deviceRepairService.detailById(id); |
| | | // return AjaxResult.success(byId); |
| | | // } |
| | | |
| | | @PutMapping () |
| | | @ApiOperation("修改设备报修") |
| | |
| | | return deviceRepairService.updateDeviceRepair(deviceRepair); |
| | | } |
| | | |
| | | @PostMapping ("repair") |
| | | @ApiOperation("设备维修") |
| | | @PostMapping("/repairs") |
| | | public AjaxResult repair( @RequestBody DeviceRepair deviceRepair) { |
| | | return deviceRepairService.updateDeviceRepair(deviceRepair); |
| | | } |