fix(测试跟踪): 导入功能用例报错 nodePath 不能为空
This commit is contained in:
parent
c66b38c4e0
commit
ff40cd438c
|
@ -582,8 +582,11 @@ public class TestCaseService {
|
||||||
TestCaseExample.Criteria criteria = example.createCriteria();
|
TestCaseExample.Criteria criteria = example.createCriteria();
|
||||||
criteria.andNameEqualTo(testCase.getName())
|
criteria.andNameEqualTo(testCase.getName())
|
||||||
.andProjectIdEqualTo(testCase.getProjectId())
|
.andProjectIdEqualTo(testCase.getProjectId())
|
||||||
.andNodePathEqualTo(testCase.getNodeId())
|
|
||||||
.andStatusNotEqualTo(CommonConstants.TrashStatus);
|
.andStatusNotEqualTo(CommonConstants.TrashStatus);
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(testCase.getNodeId())) {
|
||||||
|
criteria.andNodeIdEqualTo(testCase.getNodeId());
|
||||||
|
}
|
||||||
if (StringUtils.isNotBlank(testCase.getPriority())) {
|
if (StringUtils.isNotBlank(testCase.getPriority())) {
|
||||||
criteria.andPriorityEqualTo(testCase.getPriority());
|
criteria.andPriorityEqualTo(testCase.getPriority());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue