fix(接口自动化): 批量复制后的最后更新时间初始化为当前时间

--bug=1005167 --user=宋天阳 【接口测试-接口自动化】批量复制后的最后更新时间建议初始化为当前复制时间
https://www.tapd.cn/55049933/s/1031602
This commit is contained in:
song-tianyang 2021-08-03 11:11:02 +08:00 committed by 刘瑞斌
parent 698ab5db12
commit 62b72e73e8
1 changed files with 3 additions and 1 deletions

View File

@ -2366,10 +2366,12 @@ public class ApiAutomationService {
(query) -> extApiScenarioMapper.selectIdsByQuery((ApiScenarioRequest) query));
List<ApiScenarioWithBLOBs> apiScenarioList = extApiScenarioMapper.selectIds(batchRequest.getIds());
for (ApiScenarioWithBLOBs apiModel : apiScenarioList) {
long time = System.currentTimeMillis();
ApiScenarioWithBLOBs newModel = apiModel;
newModel.setId(UUID.randomUUID().toString());
newModel.setName("copy_" + apiModel.getName());
newModel.setCreateTime(System.currentTimeMillis());
newModel.setCreateTime(time);
newModel.setUpdateTime(time);
newModel.setNum(getNextNum(newModel.getProjectId()));
ApiScenarioExample example = new ApiScenarioExample();