| | |
| | | @AllArgsConstructor |
| | | public enum QueueStatusEnum implements IntArrayValuable { |
| | | |
| | | //10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号 |
| | | //5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 |
| | | PASSED((byte)5, "过号"), |
| | | WAITING((byte)10, "排队中"), |
| | | RECALLED((byte)15, "已召回"), |
| | | READY((byte)20, "候诊准备"), |
| | | ONSTAGE((byte)30, "就诊中"), |
| | | FINISH((byte)40, "就诊完成"), |
| | | PASSED((byte)50, "过号"); |
| | | FINISH((byte)40, "就诊完成"); |
| | | |
| | | public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(QueueStatusEnum::getStatus).toArray(); |
| | | |
| | |
| | | private Integer seqNum; |
| | | |
| | | /** |
| | | * 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号 |
| | | * 5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 |
| | | */ |
| | | @Schema(description = "排队状态", example = "1") |
| | | @ExcelProperty("排队状态") |
| | |
| | | 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"); |
| | | } |
| | |
| | | |
| | | @Schema(description = "排队序号") |
| | | private Integer seqNum; |
| | | @Schema(description = "10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号", example = "1") |
| | | @Schema(description = "5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 ", example = "1") |
| | | private Byte status; |
| | | |
| | | @Schema(description = "过号标记") |
| | |
| | | @ExcelProperty("排队序号") |
| | | private Integer seqNum; |
| | | |
| | | @Schema(description = "10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @ExcelProperty("10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号") |
| | | @Schema(description = "5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 ", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @ExcelProperty("5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 ") |
| | | private Byte status; |
| | | |
| | | @Schema(description = "过号标记", requiredMode = Schema.RequiredMode.REQUIRED) |
| | |
| | | @NotNull(message = "排队序号不能为空") |
| | | private Integer seqNum; |
| | | |
| | | @Schema(description = "10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号 不能为空") |
| | | @Schema(description = "5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 ", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 不能为空") |
| | | private Byte status; |
| | | |
| | | @Schema(description = "过号标记", requiredMode = Schema.RequiredMode.REQUIRED) |
| | |
| | | */ |
| | | private Integer seqNum; |
| | | /** |
| | | * 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 50:过号 |
| | | * 5:过号 10:排队中 15:已召回 20:候诊准备 30:就诊中 40:就诊完成 |
| | | */ |
| | | private Byte status; |
| | | /** |
| | |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | | " </foreach> )" + |
| | | " order by seq_num" + |
| | | " order by status desc, seq_num" + |
| | | "</script>") |
| | | List<QueueDO> getDoctorQueueByStatus(@Param("roomId")Long roomId, @Param("bedNo")String bedNo, @Param("statusList")List<Byte> statusList); |
| | | |