Browse Source

四长制增加姓名模糊查询

hanfucheng 1 year ago
parent
commit
2e49778737

+ 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>