fix(测试跟踪): 公共用例库中批量选择公共用例库复制到模块失败。

--bug=1008901 --user=王孝刚 【公共用例库】-批量选择公共用例库复制到模块失败。
https://www.tapd.cn/55049933/s/1081614
This commit is contained in:
wxg0103 2021-12-16 14:44:56 +08:00 committed by 刘瑞斌
parent 647fa1a2d6
commit e56ac02942
1 changed files with 1 additions and 4 deletions

View File

@ -1339,11 +1339,8 @@ public class TestCaseService {
batchCopy.setId(UUID.randomUUID().toString());
batchCopy.setCreateTime(System.currentTimeMillis());
batchCopy.setUpdateTime(System.currentTimeMillis());
checkTestCustomNum(batchCopy);
batchCopy.setNum(getNextNum(SessionUtils.getCurrentProjectId()));
if (StringUtils.isBlank(batchCopy.getCustomNum())) {
batchCopy.setCustomNum(batchCopy.getNum().toString());
}
batchCopy.setCreateUser(SessionUtils.getUserId());
batchCopy.setMaintainer(SessionUtils.getUserId());
batchCopy.setReviewStatus(TestCaseReviewStatus.Prepare.name());