fix(测试跟踪): 修复复制的功能用例/接口定义的创建和更新时间是原用例的创建和更新时间的缺陷
--bug=1009797 --user=王孝刚 【用例复制】-直接复制的功能用例/接口定义的创建和更新时间是原用例的创建和更新时间 https://www.tapd.cn/55049933/s/1097415
This commit is contained in:
parent
b2bb3a486f
commit
f96858517b
|
@ -1950,6 +1950,9 @@ public class ApiDefinitionService {
|
|||
api.setModulePath(request.getModulePath());
|
||||
api.setOrder(nextOrder += ServiceUtils.ORDER_STEP);
|
||||
api.setNum(nextNum++);
|
||||
api.setCreateTime(System.currentTimeMillis());
|
||||
api.setUpdateTime(System.currentTimeMillis());
|
||||
api.setRefId(api.getId());
|
||||
mapper.insert(api);
|
||||
if (i % 50 == 0)
|
||||
sqlSession.flushStatements();
|
||||
|
|
|
@ -2386,6 +2386,8 @@ public class TestCaseService {
|
|||
testCase.setCustomNum(String.valueOf(nextNum));
|
||||
testCase.setNum(nextNum++);
|
||||
testCase.setCasePublic(false);
|
||||
testCase.setCreateTime(System.currentTimeMillis());
|
||||
testCase.setUpdateTime(System.currentTimeMillis());
|
||||
testCase.setRefId(id);
|
||||
mapper.insert(testCase);
|
||||
|
||||
|
|
Loading…
Reference in New Issue