diff --git a/backend/src/main/java/io/metersphere/service/RegistryParamService.java b/backend/src/main/java/io/metersphere/service/RegistryParamService.java deleted file mode 100644 index d34a79d52c..0000000000 --- a/backend/src/main/java/io/metersphere/service/RegistryParamService.java +++ /dev/null @@ -1,47 +0,0 @@ -package io.metersphere.service; - -import io.metersphere.base.domain.SystemParameter; -import io.metersphere.base.domain.SystemParameterExample; -import io.metersphere.base.mapper.SystemParameterMapper; -import io.metersphere.commons.constants.ParamConstants; -import io.metersphere.commons.utils.EncryptUtils; -import org.apache.commons.lang3.StringUtils; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; - -import javax.annotation.Resource; -import java.util.Comparator; -import java.util.List; - -@Service -@Transactional(rollbackFor = Exception.class) -public class RegistryParamService { - @Resource - private SystemParameterMapper parameterMapper; - - public List getRegistry(String type) { - List paramList = this.getParamList(type); - for (SystemParameter parameter : paramList) { - if (StringUtils.equalsIgnoreCase(ParamConstants.Type.PASSWORD.getValue(), parameter.getType())) { - parameter.setParamValue(EncryptUtils.aesDecrypt(parameter.getParamValue()).toString()); - } - } - paramList.sort(Comparator.comparingInt(SystemParameter::getSort)); - return paramList; - } - - public void updateRegistry(List parameters) { - for (SystemParameter parameter : parameters) { - if (StringUtils.equalsIgnoreCase(ParamConstants.Type.PASSWORD.getValue(), parameter.getType())) { - parameter.setParamValue(EncryptUtils.aesEncrypt(parameter.getParamValue()).toString()); - } - parameterMapper.updateByPrimaryKey(parameter); - } - } - - public List getParamList(String type) { - SystemParameterExample example = new SystemParameterExample(); - example.createCriteria().andParamKeyLike(type + "%"); - return parameterMapper.selectByExample(example); - } -} diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue index 065086bc23..6163c32b79 100644 --- a/frontend/src/business/components/settings/system/TestResourcePool.vue +++ b/frontend/src/business/components/settings/system/TestResourcePool.vue @@ -104,14 +104,14 @@ - + - + - + @@ -187,14 +187,14 @@ - + - + - +