fix(接口测试): 修复导出场景不是最新数据的缺陷
--bug=1033685 --user=王孝刚 【接口测试】github#27976,【接口自动化】当前置脚本里代码被注释掉进行保存,之后导出后再导入,发现注释的内容恢复了。 https://www.tapd.cn/55049933/s/1445112
This commit is contained in:
parent
013e125538
commit
1e22a17c44
|
@ -1629,10 +1629,11 @@ public class ApiScenarioService {
|
|||
|
||||
private List<ApiScenarioWithBLOBs> getExportResult(ApiScenarioBatchRequest request) {
|
||||
ServiceUtils.getSelectAllIds(request, request.getCondition(), (query) -> extApiScenarioMapper.selectIdsByQuery(query));
|
||||
ApiScenarioExample example = new ApiScenarioExample();
|
||||
example.createCriteria().andIdIn(request.getIds());
|
||||
List<ApiScenarioWithBLOBs> apiScenarioWithBLOBs = apiScenarioMapper.selectByExampleWithBLOBs(example);
|
||||
return apiScenarioWithBLOBs;
|
||||
List<ApiScenarioWithBLOBs> result = new ArrayList<>();
|
||||
request.getIds().forEach( item-> {
|
||||
result.add(this.getNewApiScenario(item));
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
public ApiScenrioExportResult export(ApiScenarioBatchRequest request) {
|
||||
|
|
Loading…
Reference in New Issue