Explorar o código

条目缺陷占比

zhaops %!s(int64=5) %!d(string=hai) anos
pai
achega
239f211c28
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/main/resources/mapper/QcresultInfoMapper.xml

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

@@ -293,6 +293,9 @@
         <if test="filterPageVO.endDate != null and filterPageVO.endDate != ''">
             <![CDATA[AND a.leave_hospital_date < DATE(#{filterPageVO.endDate})]]>
         </if>
+        <if test="filterPageVO.name != null and filterPageVO.name != ''">
+            AND e.name like CONCAT('%', #{filterPageVO.name},'%')
+        </if>
         GROUP BY
         e.id,
         e.NAME
@@ -676,6 +679,9 @@
         <if test="filterPageByDeptVO.deptName != null and filterPageByDeptVO.deptName != ''">
             AND a.beh_dept_name = #{filterPageByDeptVO.deptName}
         </if>
+        <if test="filterPageByDeptVO.name != null and filterPageByDeptVO.name != ''">
+            AND e.name like CONCAT('%', #{filterPageVO.name},'%')
+        </if>
         GROUP BY
         e.id,
         e.NAME,