refactor(性能测试): 版本更新不影响最新版本的选定

--bug=1020950--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020950
This commit is contained in:
guoyuqi 2022-12-16 19:34:51 +08:00 committed by xiaomeinvG
parent 2c08956e59
commit 02698827ac
1 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,9 @@ public class PerformanceTestService {
loadTest.setCreateUser(SessionUtils.getUserId());
loadTest.setOrder(oldLoadTest.getOrder());
loadTest.setRefId(oldLoadTest.getRefId());
if (oldLoadTest.getLatest()) {
loadTest.setLatest(false);
}
//插入文件
copyLoadTestFiles(testId, loadTest.getId());
loadTestMapper.insertSelective(loadTest);