fix(接口自动化): 批量复制后的最后更新时间初始化为当前时间
--bug=1005167 --user=宋天阳 【接口测试-接口自动化】批量复制后的最后更新时间建议初始化为当前复制时间 https://www.tapd.cn/55049933/s/1031602
This commit is contained in:
parent
698ab5db12
commit
62b72e73e8
|
@ -2366,10 +2366,12 @@ public class ApiAutomationService {
|
||||||
(query) -> extApiScenarioMapper.selectIdsByQuery((ApiScenarioRequest) query));
|
(query) -> extApiScenarioMapper.selectIdsByQuery((ApiScenarioRequest) query));
|
||||||
List<ApiScenarioWithBLOBs> apiScenarioList = extApiScenarioMapper.selectIds(batchRequest.getIds());
|
List<ApiScenarioWithBLOBs> apiScenarioList = extApiScenarioMapper.selectIds(batchRequest.getIds());
|
||||||
for (ApiScenarioWithBLOBs apiModel : apiScenarioList) {
|
for (ApiScenarioWithBLOBs apiModel : apiScenarioList) {
|
||||||
|
long time = System.currentTimeMillis();
|
||||||
ApiScenarioWithBLOBs newModel = apiModel;
|
ApiScenarioWithBLOBs newModel = apiModel;
|
||||||
newModel.setId(UUID.randomUUID().toString());
|
newModel.setId(UUID.randomUUID().toString());
|
||||||
newModel.setName("copy_" + apiModel.getName());
|
newModel.setName("copy_" + apiModel.getName());
|
||||||
newModel.setCreateTime(System.currentTimeMillis());
|
newModel.setCreateTime(time);
|
||||||
|
newModel.setUpdateTime(time);
|
||||||
newModel.setNum(getNextNum(newModel.getProjectId()));
|
newModel.setNum(getNextNum(newModel.getProjectId()));
|
||||||
|
|
||||||
ApiScenarioExample example = new ApiScenarioExample();
|
ApiScenarioExample example = new ApiScenarioExample();
|
||||||
|
|
Loading…
Reference in New Issue