@Service(value="sysConfigService") public class SysConfigServiceImpl extends Object implements SysConfigService
Constructor and Description |
---|
SysConfigServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteBatch(Long[] ids)
删除配置信息
|
<T> T |
getConfigObject(String key,
Class<T> clazz)
根据key,获取value的Object对象
|
String |
getValue(String key,
String defaultValue)
根据key,获取配置的value值
|
List<SysConfigEntity> |
queryList(Map<String,Object> map)
获取List列表
|
SysConfigEntity |
queryObject(Long id) |
int |
queryTotal(Map<String,Object> map)
获取总记录数
|
void |
save(SysConfigEntity config)
保存配置信息
|
void |
update(SysConfigEntity config)
更新配置信息
|
void |
updateValueByKey(String key,
String value)
根据key,更新value
|
public void save(SysConfigEntity config)
SysConfigService
save
in interface SysConfigService
public void update(SysConfigEntity config)
SysConfigService
update
in interface SysConfigService
public void updateValueByKey(String key, String value)
SysConfigService
updateValueByKey
in interface SysConfigService
public void deleteBatch(Long[] ids)
SysConfigService
deleteBatch
in interface SysConfigService
public List<SysConfigEntity> queryList(Map<String,Object> map)
SysConfigService
queryList
in interface SysConfigService
public int queryTotal(Map<String,Object> map)
SysConfigService
queryTotal
in interface SysConfigService
public SysConfigEntity queryObject(Long id)
queryObject
in interface SysConfigService
public String getValue(String key, String defaultValue)
SysConfigService
getValue
in interface SysConfigService
key
- keydefaultValue
- 缺省值public <T> T getConfigObject(String key, Class<T> clazz)
SysConfigService
getConfigObject
in interface SysConfigService
key
- keyclazz
- Object对象Copyright © 2021. All rights reserved.