guarantee-lsq 1 年之前
父节点
当前提交
8fa44a6286
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      platform-dao/src/main/resources/mapper/upms/SysUserMapper.xml

+ 3 - 0
platform-dao/src/main/resources/mapper/upms/SysUserMapper.xml

@@ -224,6 +224,9 @@
         <if test="roleId!=null and roleId!=''">
         <if test="roleId!=null and roleId!=''">
             and role.role_id=#{roleId}
             and role.role_id=#{roleId}
         </if>
         </if>
+        <if test="userId !=null and userId !=''">
+            and user.user_id = #{userId}
+        </if>
         GROUP BY user.`user_id`
         GROUP BY user.`user_id`
         order by user.update_time desc
         order by user.update_time desc
     </select>
     </select>