| | |
| | | |
| | | import cn.lihu.jh.framework.common.util.exception.ExceptionUtils; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.devmanage.DeviceDO; |
| | | import cn.lihu.jh.module.ecg.enums.DevStateEnum; |
| | | import cn.lihu.jh.module.ecg.service.devmanage.DeviceService; |
| | | import cn.lihu.jh.module.ecg.service.queue.QueueService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Operation(summary = "遗失") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Long> devLose(@Valid @RequestBody DevRentSaveReqVO loseReqVO) { |
| | | return devRentService.loseOperation(loseReqVO); |
| | | loseReqVO.setState( DevStateEnum.LOST.getState() ); |
| | | return devRentService.dismantleExceptionOperation(loseReqVO); |
| | | } |
| | | |
| | | @PostMapping("/dev-damage") |
| | | @Operation(summary = "损坏") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Long> devDamage(@Valid @RequestBody DevRentSaveReqVO damageReqVO) { |
| | | damageReqVO.setState( DevStateEnum.DAMAGED.getState() ); |
| | | return devRentService.dismantleExceptionOperation(damageReqVO); |
| | | } |
| | | |
| | | @PostMapping("/create") |