فهرست منبع

四长制增加姓名模糊查询

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>