Merge remote-tracking branch 'origin/master'

pull/1/head
zccbbg 2 years ago
commit 5f6af3ec90

@ -126,9 +126,7 @@ public class SysConfigServiceImpl implements ISysConfigService {
public int insertConfig(SysConfig config) {
int row = configMapper.insertConfig(config);
if (row > 0) {
if ("N".equals(config.getConfigType())){
redisCache.setCacheObject(getCacheKey2(config.getConfigKey()), config);
} else {
if ("Y".equals(config.getConfigType())){
redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue());
}
}
@ -147,6 +145,7 @@ public class SysConfigServiceImpl implements ISysConfigService {
if (row > 0) {
if ("N".equals(config.getConfigType())){
redisCache.setCacheObject(getCacheKey2(config.getConfigKey()), config);
redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue());
} else {
redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue());
}

Loading…
Cancel
Save