init
This commit is contained in:
@@ -8,6 +8,7 @@ import org.springframework.data.redis.core.HashOperations;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -35,6 +36,11 @@ public class SystemConfigManager {
|
||||
return "1".equals(value);
|
||||
}
|
||||
|
||||
public BigDecimal getSystemConfigOfBigDecimal(SystemConfigEnum systemConfig){
|
||||
String value = getSystemConfig(systemConfig);
|
||||
return new BigDecimal(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置信息返回Integer
|
||||
* @param systemConfig
|
||||
|
||||
Reference in New Issue
Block a user