Browse Source

缺少病案号

zhaops 5 years ago
parent
commit
24f3e8677e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 4 - 2
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -2704,7 +2704,7 @@
         t1.diagnose,
         t1.diagnose,
         t1.ward_name AS wardName,
         t1.ward_name AS wardName,
         t2.age,
         t2.age,
-        t2.file_code AS fileCode
+        t1.file_code AS fileCode
         FROM
         FROM
         (
         (
         SELECT DISTINCT
         SELECT DISTINCT
@@ -2715,6 +2715,7 @@
         a.hospital_id,
         a.hospital_id,
         a.behospital_code,
         a.behospital_code,
         a.bed_code,
         a.bed_code,
+        a.file_code,
         b.LEVEL,
         b.LEVEL,
         b.grade_type,
         b.grade_type,
         b.score_res,
         b.score_res,
@@ -2862,13 +2863,14 @@
         t1.diagnose,
         t1.diagnose,
         t1.ward_name AS wardName,
         t1.ward_name AS wardName,
         t2.age,
         t2.age,
-        t2.file_code AS fileCode
+        t1.file_code AS fileCode
         FROM
         FROM
         (
         (
         SELECT DISTINCT
         SELECT DISTINCT
         a.hospital_id,
         a.hospital_id,
         a.behospital_code,
         a.behospital_code,
         a.bed_code,
         a.bed_code,
+        a.file_code,
         b.LEVEL,
         b.LEVEL,
         b.grade_type,
         b.grade_type,
         b.score_res,
         b.score_res,