refactor(性能测试): 版本更新不影响最新版本的选定
--bug=1020950--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020950
This commit is contained in:
parent
2c08956e59
commit
02698827ac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue