Browse Source

空处理

chengyao 3 years ago
parent
commit
3945b3a661
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 3 - 1
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -1712,6 +1712,7 @@
         WHERE
         a.is_deleted = 'N'
         AND c.is_deleted = 'N'
+        and a.qc_type_id != 0
         AND a.hospital_id = c.hospital_id
         AND a.beh_dept_id = c.dept_id
         <if test="isPlacefile != null and isPlacefile != ''">
@@ -1759,6 +1760,7 @@
         WHERE
         a.is_deleted = 'N'
         AND c.is_deleted = 'N'
+        and a.qc_type_id != 0
         AND a.hospital_id = c.hospital_id
         AND a.beh_dept_id = c.dept_id
         <if test="isPlacefile != null and isPlacefile != ''">
@@ -6851,7 +6853,7 @@
         GROUP BY
         d.doctor_id,
         d.doctor_name
-        having  sum( e.cases_entry_id = 2594 ) is not null or sum( e.cases_entry_id = 2973 ) is not null or sum( e.cases_entry_id = 2930 is not null)
+        having  sum( e.cases_entry_id = 2594 ) is not null or sum( e.cases_entry_id = 2973 ) is not null or sum( e.cases_entry_id = 2930 )is not null
         ) UNION
         (
         SELECT