Kaynağa Gözat

用户查询nickName字段。

tom 5 ay önce
ebeveyn
işleme
821e8efc8d

+ 3 - 0
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -284,6 +284,9 @@
         <if test="phonenumber != null and phonenumber != ''">
             AND u.phonenumber like concat('%', #{phonenumber}, '%')
         </if>
+        <if test="nickName != null and nickName != ''">
+            AND u.nickName like concat('%', #{nickName}, '%')
+        </if>
         <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
             AND date_format(u.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
         </if>