This commit is contained in:
张良(004796)
2024-01-08 19:13:01 +08:00
parent fad404fe58
commit 2010eb4133
11 changed files with 249 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ import javax.annotation.PostConstruct;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -93,6 +94,14 @@ public class SystemConfigManager {
return Stream.of(value.split(",")).collect(Collectors.toList());
}
public Set<Long> getSystemConfigOfLongSet(SystemConfigEnum systemConfig){
String value = getSystemConfig(systemConfig);
if(StringUtils.isBlank(value)){
value = systemConfig.getDefaultValue();
}
return Stream.of(value.split(",")).map(Long::valueOf).collect(Collectors.toSet());
}
/**
* 获取所有配置