commit init

This commit is contained in:
weihongyang
2022-06-20 16:26:51 +08:00
commit 7aaa6700b3
171 changed files with 9178 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package com.cnbm.admin.redis;
import com.cnbm.common.redis.RedisKeys;
import com.cnbm.common.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @Author weihongyang
* @Date 2022/6/12 10:48 AM
* @Version 1.0
*/
@Component
public class SysParamsRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] paramCodes) {
String key = RedisKeys.getSysParamsKey();
redisUtils.hDel(key, paramCodes);
}
public void set(String paramCode, String paramValue){
if(paramValue == null){
return ;
}
String key = RedisKeys.getSysParamsKey();
redisUtils.hSet(key, paramCode, paramValue);
}
public String get(String paramCode){
String key = RedisKeys.getSysParamsKey();
return (String)redisUtils.hGet(key, paramCode);
}
}