소스 검색

四长制增加姓名模糊查询

hanfucheng 1 년 전
부모
커밋
2e49778737
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/main/resources/mapper/digitalfirecontrol/CenterdataTFirecontrolPersonMapper.xml

+ 3 - 0
src/main/resources/mapper/digitalfirecontrol/CenterdataTFirecontrolPersonMapper.xml

@@ -229,6 +229,9 @@
         <if test="linJob != null and linJob != ''">
             and a.firecontrol_job=#{linJob}
         </if>
+        <if test="name != null and name != ''">
+            and a.name LIKE CONCAT('%',#{name}, '%')
+        </if>
         <choose>
             <when test="deptId != null and deptId != ''">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</when>
             <otherwise>${params.dataScope}</otherwise>