chengyao преди 3 години
родител
ревизия
3945b3a661
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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