123
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取所有配置
|
||||
|
||||
Reference in New Issue
Block a user