fix(测试计划): 修复批量处理问题

This commit is contained in:
WangXu10 2024-08-20 10:30:04 +08:00 committed by 刘瑞斌
parent 832b4d540d
commit b5be3393eb
1 changed files with 3 additions and 3 deletions

View File

@ -906,13 +906,13 @@ public class FunctionalCaseService {
functionalCaseMapper.batchInsert(subList);
});
SubListUtils.dealForSubList(addBlobList, 500, subList -> {
functionalCaseBlobMapper.batchInsert(addBlobList);
functionalCaseBlobMapper.batchInsert(subList);
});
SubListUtils.dealForSubList(addAttachMentList, 500, subList -> {
functionalCaseAttachmentService.batchSaveAttachment(addAttachMentList);
functionalCaseAttachmentService.batchSaveAttachment(subList);
});
SubListUtils.dealForSubList(addCustomFieldList, 500, subList -> {
functionalCaseCustomFieldService.batchSaveCustomField(addCustomFieldList);
functionalCaseCustomFieldService.batchSaveCustomField(subList);
});
addFileAssociationMap.entrySet().forEach(entry -> {
functionalCaseAttachmentService.association(entry.getValue(), entry.getKey(), userId, FUNCTIONAL_CASE_BATCH_COPY_FILE_LOG_URL, request.getProjectId());