| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | assetRepairRecordService.completeRepair(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation("删除") |
| | | @DeleteMapping("/{id}") |
| | | public R<?> deleteById(@ApiParam(name = "id",value = "维修记录ID")@PathVariable Integer id){ |
| | | assetRepairRecordService.deleteById(id); |
| | | return R.ok(); |
| | | } |
| | | } |
| | | |