Переглянути джерело

生成核查任务sql优化

songxinlu 3 роки тому
батько
коміт
e706b10883
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/main/resources/mapper/MedCheckInfoMapper.xml

+ 1 - 1
src/main/resources/mapper/MedCheckInfoMapper.xml

@@ -441,7 +441,7 @@
                 #{item}
             </foreach>
         </if>
-        <if test="wards !=null and wards.size > 0">
+        <if test="wards !=null and wards.size > 0 and depts.size ==0">
             AND mbi.ward_code IN
             <foreach collection="wards" item="item" open="(" close=")" separator=",">
                 #{item}