update 重构 修改框架内不正常命名与规范是和否的状态

This commit is contained in:
疯狂的狮子Li
2026-03-19 14:48:15 +08:00
parent b1e18c1b4b
commit 6c2958d54c
43 changed files with 610 additions and 607 deletions

View File

@@ -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;

View File

@@ -78,7 +78,7 @@ public class SysOssConfigBo implements Serializable {
/**
* 自定义域名
*/
private String domain;
private String domainUrl;
/**
* 是否httpsY=是,N=否)
@@ -86,7 +86,7 @@ public class SysOssConfigBo implements Serializable {
private String isHttps;
/**
* 是否默认(0=是,1=否)
* 是否默认(Y=是,N=否)
*/
private String status;

View File

@@ -60,7 +60,7 @@ public class SysOssConfigVo implements Serializable {
/**
* 自定义域名
*/
private String domain;
private String domainUrl;
/**
* 是否httpsY=是,N=否)
@@ -73,7 +73,7 @@ public class SysOssConfigVo implements Serializable {
private String region;
/**
* 是否默认(0=是,1=否)
* 是否默认(Y=是,N=否)
*/
private String status;

View File

@@ -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());