| | |
| | | @Override
|
| | | public int updateConfig(SysConfig config)
|
| | | {
|
| | | SysConfig temp = configMapper.selectConfigById(config.getConfigId());
|
| | | if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey()))
|
| | | {
|
| | | redisCache.deleteObject(getCacheKey(temp.getConfigKey()));
|
| | | }
|
| | |
|
| | | int row = configMapper.updateConfig(config);
|
| | | if (row > 0)
|
| | | {
|
| | |
| | | * @return 结果
|
| | | */
|
| | | @Override
|
| | | public String checkConfigKeyUnique(SysConfig config)
|
| | | public boolean checkConfigKeyUnique(SysConfig config)
|
| | | {
|
| | | Long configId = StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId();
|
| | | SysConfig info = configMapper.checkConfigKeyUnique(config.getConfigKey());
|