mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 19:18:59 +08:00
fix(测试跟踪): 功能用例检测自定义ID存在时,没有忽略回收站用例
--bug=1018201 --user=陈建星 【测试跟踪】导入用例-开启“测试用例自定义ID”-导入后编辑用例提示ID已存在 https://www.tapd.cn/55049933/s/1263408
This commit is contained in:
parent
cc7ae74c7f
commit
d202da7cde
@ -356,6 +356,7 @@ public class TestCaseService {
|
||||
TestCaseExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andCustomNumEqualTo(testCase.getCustomNum())
|
||||
.andProjectIdEqualTo(testCase.getProjectId())
|
||||
.andStatusNotEqualTo(CommonConstants.TrashStatus)
|
||||
.andIdNotEqualTo(testCase.getId());
|
||||
if (testCaseWithBLOBs != null && StringUtils.isNotBlank(testCaseWithBLOBs.getRefId())) {
|
||||
criteria.andRefIdNotEqualTo(testCaseWithBLOBs.getRefId());
|
||||
|
Loading…
Reference in New Issue
Block a user