mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 20:19:16 +08:00
fix(接口定义): 修复接口定义保存报错的缺陷 (#18257)
--bug=1017298 --user=王孝刚 【接口测试】【特殊数据】编辑接口定义报错了 https://www.tapd.cn/55049933/s/1252043 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
8452d2c486
commit
5a1e8d4ec2
@ -867,6 +867,9 @@ public class ApiTestCaseService {
|
||||
apiDefinitionExample.createCriteria().andApiDefinitionIdIn(ids);
|
||||
List<ApiTestCaseWithBLOBs> caseWithBLOBs = apiTestCaseMapper.selectByExampleWithBLOBs(apiDefinitionExample);
|
||||
List<String> caseIds = caseWithBLOBs.stream().map(ApiTestCaseWithBLOBs::getId).collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(caseIds)) {
|
||||
return;
|
||||
}
|
||||
List<ApiTestCaseWithBLOBs> bloBs = extApiTestCaseMapper.unTrashCaseListByIds(caseIds);
|
||||
|
||||
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
|
||||
|
Loading…
Reference in New Issue
Block a user