浏览代码

bug处理

chengyao 3 年之前
父节点
当前提交
2bbb71f401
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -1511,6 +1511,7 @@
         med_behospital_info a
         WHERE
         a.is_deleted = 'N'
+        and a.qc_type_id != 0
         <if test="isPlacefile != null and isPlacefile != ''">
             and a.is_placefile = #{isPlacefile}
         </if>
@@ -1670,6 +1671,7 @@
         med_behospital_info a
         WHERE
         a.is_deleted = 'N'
+        and a.qc_type_id != 0
         <if test="isPlacefile != null and isPlacefile != ''">
             and a.is_placefile = #{isPlacefile}
         </if>
@@ -6849,7 +6851,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 ) or sum( e.cases_entry_id = 2930 )
+        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