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

Signed-off-by: zhengwunong <704199387@qq.com>
This commit is contained in:
zhengwunong
2024-05-31 02:39:36 +00:00
committed by Gitee
parent c15978ae60
commit 93f666f607

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();