From 68ff33beff11310e830b0615b5a81f83fad0f683 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期日, 08 十一月 2026 23:33:14 +0800
Subject: [PATCH] ai优化

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentRespVO.java |  157 ++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 146 insertions(+), 11 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentRespVO.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentRespVO.java
index 9eea908..b22a44d 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentRespVO.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentRespVO.java
@@ -2,10 +2,18 @@
 
 import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.*;
+
+// 娉ㄦ剰锛氬師涓� java.sql.Date锛堝彧琛ㄧず鏃ユ湡锛夛紝浼氳 registerDate/doctorTime 涓㈠け鏃跺垎绉掋��
+// 2026-09-30 涓� AppointmentSaveReqVO/AppointmentDO 缁熶竴涓� java.util.Date銆�
+import java.util.Date;
+import java.time.LocalDate;
 import java.util.*;
-import org.springframework.format.annotation.DateTimeFormat;
+
 import java.time.LocalDateTime;
+
 import com.alibaba.excel.annotation.*;
+import com.alibaba.excel.annotation.format.DateTimeFormat;
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
 import cn.lihu.jh.framework.excel.core.annotations.DictFormat;
 import cn.lihu.jh.framework.excel.core.convert.DictConvert;
 
@@ -13,6 +21,20 @@
 @Data
 @ExcelIgnoreUnannotated
 public class AppointmentRespVO {
+
+    private Long id;
+
+    @Schema(description = "棰勭害鐢宠鍙�", example = "2024435")
+    @ExcelProperty("棰勭害鐢宠鍙�")
+    private String applyNo;
+
+    @Schema(description = "灏辫瘖娴佹按鍙�", example = "2024546")
+    @ExcelProperty("灏辫瘖娴佹按鍙�")
+    private String episodeId;
+
+    @Schema(description = "鎮h�呮潵婧�", example = "2024546")
+    @ExcelProperty("鎮h�呮潵婧�")
+    private Integer patSrc;
 
     @Schema(description = "鎮h�呯紪鍙�", requiredMode = Schema.RequiredMode.REQUIRED, example = "29034")
     @ExcelProperty("鎮h�呯紪鍙�")
@@ -29,6 +51,8 @@
 
     @Schema(description = "鎮h�呯敓鏃�")
     @ExcelProperty("鎮h�呯敓鏃�")
+    // 銆愭湰闇�姹傘�戝鍑哄彧鏄剧ず鏃ユ湡锛堝師鏉� LocalDateTime 榛樿甯︽椂鍒嗙 鈫� "1990-01-01 00:00:00"锛�
+    @DateTimeFormat("yyyy-MM-dd")
     private LocalDateTime patBirthday;
 
     @Schema(description = "鎮h�呮墜鏈�")
@@ -67,13 +91,9 @@
     @ExcelProperty("搴婂彿")
     private String patBedNo;
 
-    @Schema(description = "棰勭害缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "27849")
-    @ExcelProperty("棰勭害缂栧彿")
-    private String bookId;
-
     @Schema(description = "棰勭害鏃ユ湡", requiredMode = Schema.RequiredMode.REQUIRED)
     @ExcelProperty("棰勭害鏃ユ湡")
-    private LocalDateTime bookDate;
+    private LocalDate bookDate;
 
     @Schema(description = "棰勭害鏃堕棿娈�", requiredMode = Schema.RequiredMode.REQUIRED)
     @ExcelProperty("棰勭害鏃堕棿娈�")
@@ -81,15 +101,130 @@
 
     @Schema(description = "棰勭害鍙戠敓鏃堕棿", requiredMode = Schema.RequiredMode.REQUIRED)
     @ExcelProperty("棰勭害鍙戠敓鏃堕棿")
+    // 銆愭湰闇�姹傘�戝垪瀹藉浐瀹� 20锛氬師鍏堥潬 LongestMatchColumnWidth 鑷姩绠楋紙绾� 18锛夛紝
+    // 涓庣櫥璁版椂闂�/寮�鍗曟椂闂达紙Date 鍨嬪崟鍏冩牸鍙畻鍒� 12锛変笉涓�鑷达紝杩欓噷涓夊垪缁熶竴銆�
+    @ColumnWidth(20)
     private LocalDateTime bookTime;
 
     @Schema(description = "棰勭害妫�鏌ョ被鍨�", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
+    @DictFormat("ecg_check_type")
     @ExcelProperty(value = "棰勭害妫�鏌ョ被鍨�", converter = DictConvert.class)
-    @DictFormat("ecg_check_type") // TODO 浠g爜浼樺寲锛氬缓璁缃埌瀵瑰簲鐨� DictTypeConstants 鏋氫妇绫讳腑
-    private Byte bookCheckType;
+    private Integer bookCheckType;
+
+    /**
+     * 鎺掗槦鍙凤紙瀵瑰瀛楁鍚嶄繚鎸� bookSeqNum 涓嶅彉锛夈��
+     *
+     * <p>銆愬彿缁熶竴锛堟湰闇�姹傦級銆戝�兼潵婧愬凡鏀逛负 {@code queue.seq_num} 鈥斺��
+     * 鍙峰湪绛惧埌鏃朵竴娆℃�у垎閰嶃�佷箣鍚庝笉鍙橈紱鏈瓧娈靛彧鍦�"璇ラ绾﹀凡鎺掗槦"鏃剁敤浜庡洖鏄俱��
+     * 鏄剧ず鏃惰鎷间笂 {@code check_type.seq_prefix}锛堝彿鎸夋鏌ラ」鐩悇鑷紪鍙凤紝浼氳法椤圭洰閲嶅锛夈��
+     */
+    @Schema(description = "鎺掗槦鍙凤紙鏉ユ簮 queue.seq_num锛涘凡鏃� book 鍙凤級", requiredMode = Schema.RequiredMode.REQUIRED)
+    @ExcelProperty("鎺掗槦鍙�")
+    private Integer bookSeqNum;
 
     @Schema(description = "棰勭害鏉ユ簮锛歑绯荤粺銆佹姢澹墜鍔ㄩ绾�", requiredMode = Schema.RequiredMode.REQUIRED)
-    @ExcelProperty("棰勭害鏉ユ簮锛歑绯荤粺銆佹姢澹墜鍔ㄩ绾�")
-    private String bookSrc;
+//    @ExcelProperty("棰勭害鏉ユ簮锛歑绯荤粺銆佹姢澹墜鍔ㄩ绾�")
+    private Integer bookSrc;
 
-}
\ No newline at end of file
+    @Schema(description = "宸蹭粯娆� 0-鏈氦璐�  1-宸茬即璐�")
+    @DictFormat("ecg_pay_type")
+    @ExcelProperty(value = "浠樻鐘舵��", converter = DictConvert.class)
+    private Integer paid;
+
+    //    @TableField(exist = false)
+    @Schema(description = "鐘舵��")
+    @DictFormat("ecg_status_type")
+    @ExcelProperty(value = "鐘舵��", converter = DictConvert.class)
+    private String status;
+
+
+    /**
+     * 鐧昏鏃堕棿
+     */
+    @Schema(description = "鐧昏鏃堕棿", requiredMode = Schema.RequiredMode.REQUIRED)
+    @ExcelProperty("鐧昏鏃堕棿")
+    // 銆愭湰闇�姹傘�戝垪瀹藉浐瀹� 20锛堜笌銆岄绾﹀彂鐢熸椂闂淬�嶄竴鑷达級锛�
+    // Date 鍨嬪崟鍏冩牸鍦� LongestMatchColumnWidth 涓嬪彧浼氱畻鍒� 12锛屾椂闂磋鎴柇銆�
+    @ColumnWidth(20)
+    private Date registerDate;
+
+    /**
+     * 鑰愯嵂鎬э細 鏄惁澶氳��1浠h〃鏄紝0浠h〃涓嶆槸
+     */
+    private String tolerance;
+
+    @Schema(description = "鏄惁搴婅竟 0=鍚� 1=鏄�", example = "0")
+    @ExcelProperty("鏄惁搴婅竟")
+    private String isBedside;
+
+    /**
+     * 浣忛櫌鍙�
+     */
+    private String hospitalNo;
+
+    /**
+     * 鍖讳繚鍗″彿
+     */
+    private String medicalCard;
+
+    /**
+     * 闂ㄨ瘖鍙�
+     */
+    private String outpatientNo;
+
+    private LocalDateTime createTime;
+
+    /**
+     * 寮�鍗曞尰鐢�
+     */
+    private String doctor;
+
+    /**
+     * 寮�鍗曞尰鐢熺紪鐮�
+     */
+    private String doctorCode;
+
+    /**
+     * 寮�鍗曟椂闂�
+     */
+    @ExcelProperty("寮�鍗曟椂闂�")
+    // 銆愭湰闇�姹傘�戝垪瀹藉浐瀹� 20锛堜笌銆岄绾﹀彂鐢熸椂闂淬�嶄竴鑷达級
+    @ColumnWidth(20)
+    private Date doctorTime;
+
+    // ==================== HIS 鎺ュ叆琛ュ厖瀛楁锛�2026-09-27 闅忚〃鏂板鍒椾竴璧峰姞鍏ワ級 ====================
+    // 娉細bookSeqNum 宸插湪涓婃柟澹版槑锛屾澶勪笉閲嶅瀹氫箟
+
+    /**
+     * 浼樺厛绾� / 鍔犳�ユ爣璁帮細N=甯歌锛孞=鍔犳��
+     */
+    @ExcelProperty("鍔犳�ユ爣璁�")
+    private String jjbz;
+
+    /**
+     * 妫�鏌ユ柟寮忕紪鐮�
+     */
+    private String methodCode;
+
+    /**
+     * 妫�鏌ラ儴浣嶇紪鐮�
+     */
+    private String targetSiteCode;
+
+    /**
+     * 鍖诲槺鍙凤紙HIS 鎶ユ枃 component2.observationRequest.id.item[root=2.16.156.10011.1.28].extension锛夈��
+     * 涓庛�岀敵璇峰崟鍙� applyNo銆嶄笉鍚岋細鍓嶈�呮槸鍖诲槺鏍囪瘑锛屽悗鑰呮槸鐢宠鍗曟爣璇嗐��
+     */
+    private String doctorAdviceNo;
+
+    /**
+     * 妫�鏌ユ埧闂村悕绉�
+     */
+    private String roomName;
+
+    /**
+     * 娉ㄦ剰浜嬮」
+     */
+    private String remark;
+
+}

--
Gitblit v1.9.3