Browse Source

代码优化

wangfeng 3 năm trước cách đây
mục cha
commit
e7c8c82f33
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 != ''">