fix(数据集): 数据集列权限

This commit is contained in:
taojinlong 2022-07-29 11:03:02 +08:00
parent 3dd8c45e92
commit 9162b96fbe

View File

@ -196,7 +196,7 @@ public class PermissionService {
List<DataSetColumnPermissionsDTO> deptColumnPermissionsDTOS = new ArrayList<>();
for (DataSetColumnPermissionsDTO columnPermissionsDTO : columnPermissionService.searchPermissions(dataSetColumnPermissionsDTO)) {
List<Long> userIdList = new Gson().fromJson(columnPermissionsDTO.getWhiteListUser(), new TypeToken<List<Long>>() {}.getType());
if(!userIdList.contains(userId)){
if(CollectionUtils.isNotEmpty(userIdList) && !userIdList.contains(userId)){
deptColumnPermissionsDTOS.add(columnPermissionsDTO);
}
}