Browse Source

核查状态

zhaops 4 năm trước cách đây
mục cha
commit
ddf0e3b022
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -2931,7 +2931,7 @@
         ) t
         where 1=1
         <if test="qcResultShortPageVO.checkStatus != null">
-            AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
+            AND ifnull(t.checkStatus,0) = #{qcResultShortPageVO.checkStatus}
         </if>
     </select>
 
@@ -3891,7 +3891,7 @@
             mci.is_deleted = 'N'
             AND be.hospital_id = mci.hospital_id
             AND be.behospital_code = mci.behospital_code
-            AND mci.status = #{qcResultShortPageVO.checkStatus}
+            AND ifnull(mci.status,0) = #{qcResultShortPageVO.checkStatus}
         </if>
         <if test="qcResultShortPageVO.checkStatus == null">
             LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
@@ -4123,7 +4123,7 @@
         AND a.behospital_code = c.behospital_code
         AND a.qc_type_id != 0
         AND a.is_placefile = '1'
-        AND c.`status` = 1
+        AND ifnull(c.`status`,0) = 1
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
         </if>