瀏覽代碼

四长制增加姓名模糊查询

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>