修改问题

This commit is contained in:
chenshaohua
2026-05-26 23:40:21 +08:00
parent 634cfbbe1b
commit b9cb591d7f
4 changed files with 1 additions and 17 deletions

View File

@@ -328,7 +328,7 @@ public class SsoService {
if (StringUtils.isNotEmpty(personCardNo)) { if (StringUtils.isNotEmpty(personCardNo)) {
sysUser = sysUserService.selectUserByIdCard(personCardNo); sysUser = sysUserService.selectUserByIdCard(personCardNo);
} else { } else {
sysUser = sysUserService.selectSysUserById(userJson.getLong("userId")); sysUser = sysUserService.selectUserById(userJson.getLong("userId"));
} }
if (sysUser == null) { if (sysUser == null) {

View File

@@ -137,11 +137,4 @@ public interface SysUserMapper
*/ */
SysUser selectUserByIdCard(String idCard); SysUser selectUserByIdCard(String idCard);
/**
* 通过用户ID查询用户
*
* @param userId 用户ID
* @return 用户对象信息
*/
public SysUser selectSysUserById(Long userId);
} }

View File

@@ -560,8 +560,4 @@ public class SysUserServiceImpl implements ISysUserService
return userMapper.selectUserByIdCard(idCard); return userMapper.selectUserByIdCard(idCard);
} }
public SysUser selectSysUserById(Long userId){
return userMapper.selectSysUserById(userId);
}
} }

View File

@@ -240,9 +240,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_user where del_flag='0' and id_card = #{idCard} LIMIT 1 select * from sys_user where del_flag='0' and id_card = #{idCard} LIMIT 1
</select> </select>
<select id="selectSysUserById" parameterType="Long" resultType="com.ruoyi.common.core.domain.entity.SysUser">
<include refid="selectUserVo"/>
where u.user_id = #{userId}
</select>
</mapper> </mapper>