Explorar el Código

湘雅病案首页缺陷占比sql逻辑调整

chengyao hace 3 años
padre
commit
0bdf06c166
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/main/resources/mapper/QcresultInfoMapper.xml

+ 3 - 0
src/main/resources/mapper/QcresultInfoMapper.xml

@@ -1816,6 +1816,7 @@
         AND a.hospital_id = d.hospital_id
         AND a.behospital_code = b.behospital_code
         AND a.behospital_code = d.behospital_code
+        AND d.cases_id = 243
         <if test="filterPageVO.isPlacefile != null and filterPageVO.isPlacefile != ''">
             and a.is_placefile = #{filterPageVO.isPlacefile}
         </if>
@@ -1913,6 +1914,7 @@
         </if>
         AND e.cases_id = d.cases_id
         AND e.id = d.cases_entry_id
+        AND e.cases_id = 243
         AND a.qc_type_id != 0
         <if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
             AND a.hospital_id = #{filterPageVO.hospitalId}
@@ -2392,6 +2394,7 @@
             and a.is_placefile = #{filterPageByDeptVO.isPlacefile}
         </if>
         AND e.cases_id = d.cases_id
+        AND e.cases_id = 243
         AND e.id = d.cases_entry_id
         AND a.qc_type_id != 0
         <if test="filterPageByDeptVO.hospitalId != null and filterPageByDeptVO.hospitalId != ''">