fix(系统设置): 修复测试资源池重名检查

This commit is contained in:
shiziyuan9527 2021-03-22 20:36:47 +08:00
parent a106b22faf
commit b2eb55d03f
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public class TestResourcePoolService {
if (StringUtils.isNotBlank(testResourcePoolDTO.getId())) {
criteria.andIdNotEqualTo(testResourcePoolDTO.getId());
}
criteria.andStatusNotEqualTo(DELETE.name());
if (testResourcePoolMapper.countByExample(example) > 0) {
MSException.throwException(Translator.get("test_resource_pool_name_already_exists"));