fix(性能测试时): 修复性能测试copy时没有更新数据库createUser字段导致报表统计失误的问题

--bug=1009800 --user=宋天阳 【性能测试】-复制的性能用例A-报表统计中没有统计出来 {#_orginal_url#}
This commit is contained in:
song-tianyang 2022-01-20 14:15:42 +08:00 committed by song-tianyang
parent 981345d4ad
commit b36cbf0268

View File

@ -568,6 +568,7 @@ public class PerformanceTestService {
copy.setUpdateTime(System.currentTimeMillis());
copy.setStatus(APITestStatus.Saved.name());
copy.setUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
copy.setCreateUser(Objects.requireNonNull(SessionUtils.getUser()).getId());
copy.setNum(getNextNum(copy.getProjectId()));
loadTestMapper.insert(copy);
// copy test file