| | |
| | | import static cn.lihu.jh.framework.common.pojo.CommonResult.error; |
| | | import static cn.lihu.jh.framework.common.pojo.CommonResult.success; |
| | | import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.ECG_INNER_ERROR; |
| | | import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.PATIENT_NOT_EXISTS; |
| | | |
| | | @Tag(name = "管理后台 - 医生叫号") |
| | | @RestController |
| | |
| | | { |
| | | Integer result = queueService.recallPatient(roomId, bedNo, patId); |
| | | if (null == result || 0 == result) |
| | | return error( new ErrorCode(201, "找不到患者") ); |
| | | return error(PATIENT_NOT_EXISTS); |
| | | |
| | | return success("success"); |
| | | } |