fix(测试跟踪): 修复导入用例时没有默认status的问题

--bug=1008037 --user=刘瑞斌
【github#7818】v1.14.2版本,导入的测试用例,绑定到测试计划后列表中无法显示,只能在脑图里显示;平台创建的用例正常
https://www.tapd.cn/55049933/s/1070410

Closes #7818
This commit is contained in:
CaptainB 2021-11-19 14:17:23 +08:00 committed by 刘瑞斌
parent 14202e006f
commit 2df05ad5bb
1 changed files with 1 additions and 0 deletions

View File

@ -657,6 +657,7 @@ public class TestCaseService {
testcase.setCustomNum(String.valueOf(number));
}
testcase.setReviewStatus(TestCaseReviewStatus.Prepare.name());
testcase.setStatus(TestCaseReviewStatus.Prepare.name());
testcase.setOrder(nextOrder);
mapper.insert(testcase);
nextOrder += 5000;