소스 검색

代码优化

wangfeng 3 년 전
부모
커밋
e7c8c82f33
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 != ''">