配置接口优化
This commit is contained in:
parent
6ef09675dd
commit
39739efcad
|
|
@ -147,6 +147,15 @@ public class BmConfigServiceImpl implements IBmConfigService
|
|||
return result;
|
||||
}
|
||||
|
||||
public String getBmConfigResultAsString(String itemName) {
|
||||
String value = "";
|
||||
BmConfig bmConfig = bmConfigMapper.selectBmConfigByItemName(itemName);
|
||||
if (Objects.nonNull(bmConfig)) {
|
||||
value = getValueWithDefault(bmConfig.getItemValue(), "");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public List<String> getBmConfigResultAsList(String itemName) {
|
||||
List<String> list = new ArrayList();
|
||||
BmConfig bmConfig = bmConfigMapper.selectBmConfigByItemName(itemName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue