Kaynağa Gözat

excel 编码、关联编码循环嵌套

lenovodn 1 yıl önce
ebeveyn
işleme
f8fd37cbdb

+ 3 - 3
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/mapper/xml/AfterwardsAuditDetailMapper.xml

@@ -6,8 +6,8 @@
             resultType="org.jeecg.modules.medical.common.bo.before.PatientInformationResponse">
         SELECT
             ad.patient_id AS patientId, -- 患者编码
-            p.patient_name AS patientName, -- 患者姓名
-            p.gender AS gender, -- 性别
+            ad.patient_name AS patientName, -- 患者姓名
+            ad.gender AS gender, -- 性别
             p.birthday AS birthday, -- 生日
             "" AS age, -- 年龄
             "" AS medicalInsurance, -- 是否医保(从主表查询)
@@ -24,7 +24,7 @@
             resultType="org.jeecg.modules.medical.common.bo.before.PatientInformationResponse">
         SELECT
             ad.patient_id AS patientId, -- 患者编码
-            p.patient_name AS patientName, -- 患者姓名
+            ad.patient_name AS patientName, -- 患者姓名
             p.gender AS gender, -- 性别
             p.birthday AS birthday, -- 生日
             "" AS age, -- 年龄