wangfeng %!s(int64=3) %!d(string=hai) anos
pai
achega
e7c8c82f33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/resources/mapper/TranLogMapper.xml

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

@@ -33,7 +33,7 @@
         <if test="tranLogPageVO.hospitalId != null">
             AND a.hospital_id = #{tranLogPageVO.hospitalId}
         </if>
-        <if test="deptName != null adn deptName !=''">
+        <if test="tranLogPageVO.deptName != null and tranLogPageVO.deptName !=''">
             AND a.dept_name = #{tranLogPageVO.deptName}
         </if>
         <if test="tranLogPageVO.patientId != null and tranLogPageVO.patientId != ''">