fix(测试跟踪): 脑图用例添加优先级保存报错
This commit is contained in:
parent
2c64013d9e
commit
c7517df458
|
@ -425,13 +425,7 @@ public class TestCaseService {
|
|||
.andProjectIdEqualTo(testCase.getProjectId())
|
||||
.andNodePathEqualTo(nodePath)
|
||||
.andTypeEqualTo(testCase.getType())
|
||||
// .andMaintainerEqualTo(testCase.getMaintainer())
|
||||
.andPriorityEqualTo(testCase.getPriority());
|
||||
// .andMethodEqualTo(testCase.getMethod());
|
||||
|
||||
// if (StringUtils.isNotBlank(testCase.getNodeId())) {
|
||||
// criteria.andNodeIdEqualTo(testCase.getTestId());
|
||||
// }
|
||||
|
||||
if (StringUtils.isNotBlank(testCase.getTestId())) {
|
||||
criteria.andTestIdEqualTo(testCase.getTestId());
|
||||
|
|
|
@ -341,9 +341,12 @@ name: "TestCaseMinder",
|
|||
let isChange = false;
|
||||
|
||||
let nodeId = parent ? (parent.newId ? parent.newId : parent.id) : "";
|
||||
let priorityDefaultValue = (data.priority ? 'P' + data.priority - 1 :
|
||||
(this.testCaseDefaultValue['用例等级'] ? this.testCaseDefaultValue['用例等级'] : 'P' + 0)
|
||||
);
|
||||
let priorityDefaultValue;
|
||||
if (data.priority ) {
|
||||
priorityDefaultValue = 'P' + (data.priority - 1);
|
||||
} else {
|
||||
priorityDefaultValue = this.testCaseDefaultValue['用例等级'] ? this.testCaseDefaultValue['用例等级'] : 'P' + 0;
|
||||
}
|
||||
|
||||
let testCase = {
|
||||
id: data.id,
|
||||
|
|
Loading…
Reference in New Issue