lyhzzz hace 2 días
padre
commit
d5ef57d98e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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}
             and u.create_time <=#{param.endTime}
         </if>
         </if>
         <if test="param.companyName != null and param.companyName!=''">
         <if test="param.companyName != null and param.companyName!=''">
-            and c.company_name =#{param.companyName}
+            and c.company_name like concat ('%',#{param.companyName},'%')
         </if>
         </if>
         <if test="param.phoneNum != null and param.phoneNum!=''">
         <if test="param.phoneNum != null and param.phoneNum!=''">
-            and u.user_name =#{param.phoneNum}
+            and u.user_name like concat ('%',#{param.phoneNum},'%')
         </if>
         </if>
         order by u.id desc,u.create_time desc
         order by u.id desc,u.create_time desc
     </sql>
     </sql>