wangfeng 3 anni fa
parent
commit
a1d9ed31cf
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/main/resources/mapper/TranLogMapper.xml

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

@@ -34,7 +34,7 @@
             AND a.hospital_id = #{tranLogPageVO.hospitalId}
         </if>
         <if test="tranLogPageVO.deptName != null and tranLogPageVO.deptName !=''">
-            AND a.dept_name = #{tranLogPageVO.deptName}
+            AND a.dept_name LIKE CONCAT( '%', #{tranLogPageVO.deptName}, '%' )
         </if>
         <if test="tranLogPageVO.patientId != null and tranLogPageVO.patientId != ''">
             AND a.patient_id LIKE CONCAT( '%', #{tranLogPageVO.patientId}, '%' )
@@ -70,7 +70,7 @@
             AND hospital_id = #{hospitalId}
         </if>
         <if test="deptName != null and deptName !=''">
-            AND dept_name = #{deptName}
+            AND dept_name LIKE CONCAT( '%', #{deptName}, '%' )
         </if>
         <if test="startGmtReq != null and endGmtReq != null">
             AND DATE_FORMAT( gmt_req, '%Y-%m-%d %T' ) BETWEEN DATE_FORMAT(#{startGmtReq}, '%Y-%m-%d %T'