mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-30 16:51:25 +08:00
update 重构 修改框架内不正常命名与规范是和否的状态
This commit is contained in:
@@ -55,7 +55,7 @@ public class SysOssConfig extends BaseEntity {
|
||||
/**
|
||||
* 自定义域名
|
||||
*/
|
||||
private String domain;
|
||||
private String domainUrl;
|
||||
|
||||
|
||||
/**
|
||||
@@ -69,7 +69,7 @@ public class SysOssConfig extends BaseEntity {
|
||||
private String region;
|
||||
|
||||
/**
|
||||
* 是否默认(0=是,1=否)
|
||||
* 是否默认(Y=是,N=否)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ public class SysOssConfigBo implements Serializable {
|
||||
/**
|
||||
* 自定义域名
|
||||
*/
|
||||
private String domain;
|
||||
private String domainUrl;
|
||||
|
||||
/**
|
||||
* 是否https(Y=是,N=否)
|
||||
@@ -86,7 +86,7 @@ public class SysOssConfigBo implements Serializable {
|
||||
private String isHttps;
|
||||
|
||||
/**
|
||||
* 是否默认(0=是,1=否)
|
||||
* 是否默认(Y=是,N=否)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class SysOssConfigVo implements Serializable {
|
||||
/**
|
||||
* 自定义域名
|
||||
*/
|
||||
private String domain;
|
||||
private String domainUrl;
|
||||
|
||||
/**
|
||||
* 是否https(Y=是,N=否)
|
||||
@@ -73,7 +73,7 @@ public class SysOssConfigVo implements Serializable {
|
||||
private String region;
|
||||
|
||||
/**
|
||||
* 是否默认(0=是,1=否)
|
||||
* 是否默认(Y=是,N=否)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.common.core.constant.CacheNames;
|
||||
import org.dromara.common.core.constant.SystemConstants;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
import org.dromara.common.core.utils.ObjectUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
@@ -53,7 +54,7 @@ public class SysOssConfigServiceImpl implements ISysOssConfigService {
|
||||
// 加载OSS初始化配置
|
||||
for (SysOssConfig config : list) {
|
||||
String configKey = config.getConfigKey();
|
||||
if ("0".equals(config.getStatus())) {
|
||||
if (SystemConstants.YES.equals(config.getStatus())) {
|
||||
RedisUtils.setCacheObject(OssConstant.DEFAULT_CONFIG_KEY, configKey);
|
||||
}
|
||||
CacheUtils.put(CacheNames.SYS_OSS_CONFIG, config.getConfigKey(), JsonUtils.toJsonString(config));
|
||||
@@ -165,7 +166,7 @@ public class SysOssConfigServiceImpl implements ISysOssConfigService {
|
||||
public int updateOssConfigStatus(SysOssConfigBo bo) {
|
||||
SysOssConfig sysOssConfig = BeanUtil.toBean(bo, SysOssConfig.class);
|
||||
int row = baseMapper.update(null, new LambdaUpdateWrapper<SysOssConfig>()
|
||||
.set(SysOssConfig::getStatus, "1"));
|
||||
.set(SysOssConfig::getStatus, SystemConstants.NO));
|
||||
row += baseMapper.updateById(sysOssConfig);
|
||||
if (row > 0) {
|
||||
RedisUtils.setCacheObject(OssConstant.DEFAULT_CONFIG_KEY, sysOssConfig.getConfigKey());
|
||||
|
||||
Reference in New Issue
Block a user