Explorar el Código

调整模糊查询

yfh hace 4 días
padre
commit
4c5721005d

+ 1 - 1
fs-service/src/main/resources/mapper/company/CompanyUserMapper.xml

@@ -464,7 +464,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from company_user cu
         <where>
             <if test="params.nickName != null and params.nickName != ''">
-                and cu.nick_name like concat(#{params.nickName}, '%')
+                and cu.nick_name like concat( '%',#{params.nickName}, '%')
             </if>
             <if test="params.companyId != null">
                 and cu.company_id = #{params.companyId}