fix(系统设置): 修复测试资源池重名检查
This commit is contained in:
parent
a106b22faf
commit
b2eb55d03f
|
@ -74,6 +74,7 @@ public class TestResourcePoolService {
|
||||||
if (StringUtils.isNotBlank(testResourcePoolDTO.getId())) {
|
if (StringUtils.isNotBlank(testResourcePoolDTO.getId())) {
|
||||||
criteria.andIdNotEqualTo(testResourcePoolDTO.getId());
|
criteria.andIdNotEqualTo(testResourcePoolDTO.getId());
|
||||||
}
|
}
|
||||||
|
criteria.andStatusNotEqualTo(DELETE.name());
|
||||||
|
|
||||||
if (testResourcePoolMapper.countByExample(example) > 0) {
|
if (testResourcePoolMapper.countByExample(example) > 0) {
|
||||||
MSException.throwException(Translator.get("test_resource_pool_name_already_exists"));
|
MSException.throwException(Translator.get("test_resource_pool_name_already_exists"));
|
||||||
|
|
Loading…
Reference in New Issue