mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 优化以逗号拼接元素
This commit is contained in:
@ -112,7 +112,7 @@ public class SysClientServiceImpl implements ISysClientService {
|
||||
@Override
|
||||
public Boolean updateByBo(SysClientBo bo) {
|
||||
SysClient update = MapstructUtils.convert(bo, SysClient.class);
|
||||
update.setGrantType(String.join(",", bo.getGrantTypeList()));
|
||||
update.setGrantType(StringUtils.joinComma(bo.getGrantTypeList()));
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
||||
list.add(vo.getDeptName());
|
||||
}
|
||||
}
|
||||
return String.join(StringUtils.SEPARATOR, list);
|
||||
return StringUtils.joinComma(list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,7 +116,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
|
||||
}
|
||||
}
|
||||
}
|
||||
return String.join(StringUtils.SEPARATOR, list);
|
||||
return StringUtils.joinComma(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -622,7 +622,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
|
||||
list.add(nickname);
|
||||
}
|
||||
}
|
||||
return String.join(StringUtils.SEPARATOR, list);
|
||||
return StringUtils.joinComma(list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user