| | |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/dev-lose") |
| | | @Operation(summary = "遗失") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Long> devLose(@Valid @RequestBody DevRentSaveReqVO loseReqVO) { |
| | | try { |
| | | return devRentService.loseOperation(loseReqVO); |
| | | } catch ( RuntimeException runtimeException ) { |
| | | String err = ExceptionUtils.formatException( runtimeException ); |
| | | log.error("devLose: " + err); |
| | | return CommonResult.error(DEV_LOSE_EXCEPTION); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建装机拆机") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |