瀏覽代碼

空处理

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