|
@@ -42,12 +42,12 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigDao, SysConfigEnt
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public PageUtils queryPage(Map<String, Object> params) {
|
|
public PageUtils queryPage(Map<String, Object> params) {
|
|
- String key = (String)params.get("key");
|
|
|
|
|
|
+ String paramKey = (String)params.get("paramKey");
|
|
|
|
|
|
Page<SysConfigEntity> page = this.selectPage(
|
|
Page<SysConfigEntity> page = this.selectPage(
|
|
new Query<SysConfigEntity>(params).getPage(),
|
|
new Query<SysConfigEntity>(params).getPage(),
|
|
new EntityWrapper<SysConfigEntity>()
|
|
new EntityWrapper<SysConfigEntity>()
|
|
- .like(StringUtils.isNotBlank(key),"key", key)
|
|
|
|
|
|
+ .like(StringUtils.isNotBlank(paramKey),"param_key", paramKey)
|
|
.eq("status", 1)
|
|
.eq("status", 1)
|
|
);
|
|
);
|
|
|
|
|
|
@@ -63,7 +63,7 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigDao, SysConfigEnt
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void update(SysConfigEntity config) {
|
|
public void update(SysConfigEntity config) {
|
|
- this.updateById(config);
|
|
|
|
|
|
+ this.updateAllColumnById(config);
|
|
sysConfigRedis.saveOrUpdate(config);
|
|
sysConfigRedis.saveOrUpdate(config);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -79,7 +79,7 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigDao, SysConfigEnt
|
|
public void deleteBatch(Long[] ids) {
|
|
public void deleteBatch(Long[] ids) {
|
|
for(Long id : ids){
|
|
for(Long id : ids){
|
|
SysConfigEntity config = this.selectById(id);
|
|
SysConfigEntity config = this.selectById(id);
|
|
- sysConfigRedis.delete(config.getKey());
|
|
|
|
|
|
+ sysConfigRedis.delete(config.getParamKey());
|
|
}
|
|
}
|
|
|
|
|
|
this.deleteBatchIds(Arrays.asList(ids));
|
|
this.deleteBatchIds(Arrays.asList(ids));
|
|
@@ -93,7 +93,7 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigDao, SysConfigEnt
|
|
sysConfigRedis.saveOrUpdate(config);
|
|
sysConfigRedis.saveOrUpdate(config);
|
|
}
|
|
}
|
|
|
|
|
|
- return config == null ? null : config.getValue();
|
|
|
|
|
|
+ return config == null ? null : config.getParamValue();
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|