系统模板bug修改

This commit is contained in:
钱涛 2024-12-05 10:26:37 +08:00
parent 5fedafc67e
commit ec0e74a8eb
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ public class SettingServiceImpl extends Service implements SettingService {
.sharedTypeName(SharedTypeEnum.parseByValue(po.getSharedType()).getDefaultLabel())
.systemTypeName(po.getSystemType() == 1 ? "系统模板" : "自定义")
.limits(CollUtil.isEmpty(po.getLimitIds()) ? "所有" : Optional.ofNullable(po.getLimitIds()).orElse(new ArrayList<>()).stream().map(id -> idNameMap.getOrDefault(id, "")).collect(Collectors.joining(",")))
.limitIds(po.getLimitIds())
.limitIds(CollUtil.isEmpty(po.getLimitIds()) ? new ArrayList<>() : po.getLimitIds())
.setting(po.getSetting())
.canEdit(chief || (Objects.equals((long) user.getUID(), po.getCreator()) && po.getSystemType() == 0))
.build())