系统模板bug修改
This commit is contained in:
parent
5fedafc67e
commit
ec0e74a8eb
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue