【7.6.0】【sys】修复获取userId错误的问题

pull/57/head
fengshuonan 2023-06-28 15:14:53 +08:00
parent 18e2e9ceaf
commit 1705105269
1 changed files with 1 additions and 2 deletions

View File

@ -88,12 +88,11 @@ public class SysTableWidthServiceImpl extends ServiceImpl<SysTableWidthMapper, S
// 先删除用户的配置再保存
String fieldBusinessCode = sysTableWidthRequest.getFieldBusinessCode();
Integer fieldType = sysTableWidthRequest.getFieldType();
Long userId = sysTableWidthRequest.getUserId();
LambdaQueryWrapper<SysTableWidth> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(SysTableWidth::getFieldBusinessCode, fieldBusinessCode);
queryWrapper.eq(SysTableWidth::getFieldType, fieldType);
queryWrapper.eq(SysTableWidth::getUserId, userId);
queryWrapper.eq(SysTableWidth::getUserId, currentUserId);
this.remove(queryWrapper);
this.save(sysTableWidth);