fix(系统设置): 修改内存定时清理文案

This commit is contained in:
wxg0103 2024-04-03 14:33:16 +08:00 committed by 刘瑞斌
parent 455b6a263b
commit 2dfbf36da7
3 changed files with 6 additions and 11 deletions

View File

@ -4,13 +4,15 @@ import io.metersphere.sdk.constants.HttpMethodConstants;
import io.metersphere.sdk.constants.OperationLogConstants;
import io.metersphere.sdk.constants.ParamConstants;
import io.metersphere.sdk.exception.MSException;
import io.metersphere.sdk.util.*;
import io.metersphere.sdk.util.EncryptUtils;
import io.metersphere.sdk.util.JSON;
import io.metersphere.sdk.util.LogUtils;
import io.metersphere.sdk.util.Translator;
import io.metersphere.system.domain.SystemParameter;
import io.metersphere.system.domain.SystemParameterExample;
import io.metersphere.system.dto.sdk.BaseCleanConfigDTO;
import io.metersphere.system.dto.sdk.BaseSystemConfigDTO;
import io.metersphere.system.dto.sdk.EMailInfoDto;
import io.metersphere.system.job.CleanHistoryJob;
import io.metersphere.system.log.constants.OperationLogModule;
import io.metersphere.system.log.constants.OperationLogType;
import io.metersphere.system.log.dto.LogDTO;
@ -283,13 +285,6 @@ public class SystemParameterService {
} else {
systemParameterMapper.insert(parameter);
}
if (StringUtils.equals(parameter.getParamKey(), ParamConstants.CleanConfig.OPERATION_HISTORY.getValue())) {
// 清理历史记录
CleanHistoryJob bean = CommonBeanFactory.getBean(CleanHistoryJob.class);
if (bean != null) {
bean.cleanupLog();
}
}
});
}

View File

@ -203,5 +203,5 @@ export default {
'system.config.memoryCleanup.setSuccess': 'Setup successful',
'system.config.memoryCleanup.saveCount': 'Reserved quantity',
'system.config.memoryCleanup.saveCountTip':
'It is effective for all projects in the system. Use case change history that exceeds the settings will be cleared and will take effect immediately after the update.',
'Effective for all projects in the system, the system will clear unset change history in the early morning',
};

View File

@ -197,5 +197,5 @@ export default {
'system.config.memoryCleanup.year': '年',
'system.config.memoryCleanup.setSuccess': '设置成功',
'system.config.memoryCleanup.saveCount': '保留条数',
'system.config.memoryCleanup.saveCountTip': '对系统内所有的项目生效,超出设置的用例变更历史会被清除,更新后立即生效',
'system.config.memoryCleanup.saveCountTip': '对系统内所有的项目生效,系统会在凌晨清除超出设置的变更历史记录',
};