| | |
| | | |
| | | import cn.lihu.jh.framework.common.exception.ErrorCode; |
| | | import cn.lihu.jh.framework.security.core.util.SecurityFrameworkUtils; |
| | | import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomRespVO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomResVO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | |
| | | ErrorCode result = queueService.startBedDoctorPause(roomId, bedNo, userId, userNickname); |
| | | if (result.equals(SUCCESS)) |
| | | return success(0); |
| | | return success(SUCCESS.getCode()); |
| | | |
| | | return error(result); |
| | | } |
| | |
| | | |
| | | ErrorCode result = queueService.startBedDoctorResume(roomId, bedNo, userId, userNickname); |
| | | if (result.equals(SUCCESS)) |
| | | return success(0); |
| | | return success(SUCCESS.getCode()); |
| | | |
| | | return error(result); |
| | | } |
| | |
| | | return error(result); |
| | | } |
| | | |
| | | @GetMapping("/bed-doctor-get") |
| | | @Operation(summary = "医生工位获取") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue:bedcontrol')") |
| | | public CommonResult<RoomRespVO> bedDoctorGet( |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo) |
| | | { |
| | | Long userId = SecurityFrameworkUtils.getLoginUserId(); |
| | | |
| | | CommonResult<RoomRespVO> result = queueService.getRoom(roomId, bedNo, userId); |
| | | return result; |
| | | } |
| | | |
| | | @GetMapping("/startbiz") |
| | | @Operation(summary = "手动开诊") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue:setting')") |