lyhzzz 2 天之前
父節點
當前提交
d5ef57d98e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/manage_jp/UserMapper.xml

+ 2 - 2
src/main/resources/mapper/manage_jp/UserMapper.xml

@@ -24,10 +24,10 @@
             and u.create_time <=#{param.endTime}
         </if>
         <if test="param.companyName != null and param.companyName!=''">
-            and c.company_name =#{param.companyName}
+            and c.company_name like concat ('%',#{param.companyName},'%')
         </if>
         <if test="param.phoneNum != null and param.phoneNum!=''">
-            and u.user_name =#{param.phoneNum}
+            and u.user_name like concat ('%',#{param.phoneNum},'%')
         </if>
         order by u.id desc,u.create_time desc
     </sql>