loginWorkbench方法里面LambdaUpdateWrapper修改为LambdaQueryWrapper比较稳妥

Signed-off-by: zhengwunong <704199387@qq.com>
pull/217/head
zhengwunong 2024-05-31 02:39:36 +00:00 committed by Gitee
parent c15978ae60
commit 93f666f607
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
@Override
public String loginWorkbench(SysUserIdParam sysUserIdParam) {
SysUser sysUser = this.queryEntity(sysUserIdParam.getId());
SysRelation sysRelation = sysRelationService.getOne(new LambdaUpdateWrapper<SysRelation>().eq(SysRelation::getObjectId, sysUser.getId())
SysRelation sysRelation = sysRelationService.getOne(new LambdaQueryWrapper<SysRelation>().eq(SysRelation::getObjectId, sysUser.getId())
.eq(SysRelation::getCategory, SysRelationCategoryEnum.SYS_USER_WORKBENCH_DATA.getValue()));
if (ObjectUtil.isNotEmpty(sysRelation)) {
return sysRelation.getExtJson();