| | |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('device_receivingNote_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | return R.ok(receivingNoteService.getById(id)); |
| | | return R.ok(receivingNoteService.getByIdDeep(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('device_receivingNote_add')" ) |
| | | public R save(@RequestBody ReceivingNote receivingNote) { |
| | | return R.ok(receivingNoteService.save(receivingNote)); |
| | | return R.ok(receivingNoteService.saveDeep(receivingNote)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('device_receivingNote_edit')" ) |
| | | public R updateById(@RequestBody ReceivingNote receivingNote) { |
| | | return R.ok(receivingNoteService.updateById(receivingNote)); |
| | | return R.ok(receivingNoteService.updateByIdDeep(receivingNote)); |
| | | } |
| | | |
| | | /** |