eight
2024-08-23 7485643ee7de86e6edd3da5ad3291be83991b7a7
update
已修改2个文件
9 ■■■■ 文件已修改
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
sql/mysql/jh.sql 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
@@ -11,6 +11,7 @@
import cn.lihu.jh.module.ecg.service.queue.QueueService;
import cn.lihu.jh.module.ecg.service.room.RoomService;
import cn.lihu.jh.module.system.api.dept.DeptApi;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -189,6 +190,7 @@
            return error( new ErrorCode(101, "不是今天的预约用户"));
*/
        try {
        QueueSaveReqVO queueSaveReqVO = new QueueSaveReqVO();
        queueSaveReqVO.setPatId( appointment.getPatId());
        queueSaveReqVO.setPatName( appointment.getPatName() );
@@ -199,6 +201,9 @@
        queueSaveReqVO.setPassed((byte)0);
        queueSaveReqVO.setExpired((byte)0);
        queueService.queue(queueSaveReqVO);
        } catch (DuplicateKeyException duplicateKeyException) {
            return success("您已经在排队中了");
        }
        return success("hello");
    }
sql/mysql/jh.sql
@@ -65,11 +65,11 @@
         `update_time` datetime NOT NULL COMMENT '更新时间',
         `deleted` bit(1) DEFAULT b'0' COMMENT '删除标记',
         PRIMARY KEY (`id`),
                         UNIQUE KEY `unique_pat_id` (`pat_id`) USING BTREE,
         KEY `idx_status` (`status`) USING BTREE,
         KEY `idx_seq_num` (`seq_num`) USING BTREE,
         KEY `idx_room_bed_status` (`room_id`,`bed_no`,`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='排队表';
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='排队表';
-- ----------------------------
-- Table structure for clinic_room