【物料变更】大批量导入,上限10000条

This commit is contained in:
10001392 2024-09-12 14:07:23 +08:00
parent d7315a9183
commit f4485365fd
1 changed files with 6 additions and 0 deletions

View File

@ -406,6 +406,9 @@ public class MaterialUpdateBillService extends ServiceImpl<MaterialUpdateBillMap
if (lastColIndex == 4) {
List<MaterialStateUpExcelDTO> excelContext = EecExcelUtil.getExcelContext(file.getInputStream(), MaterialStateUpExcelDTO.class);
if (CollectionUtil.isNotEmpty(excelContext) && excelContext.size() > 1000) {
if (excelContext.size() > 10000) {
return ResultVO.error("导入失败最多支持10000条批量导入");
}
redisTemplate.opsForValue().set(buildKey(userCode + ":updateBatchImport"), file.getOriginalFilename());
// 大数据量子线程分批次提交OA每批1000条主线程提前返回结果给前端
CompletableFuture<Integer> task1 = CompletableFuture.supplyAsync(() -> {
@ -433,6 +436,9 @@ public class MaterialUpdateBillService extends ServiceImpl<MaterialUpdateBillMap
// 制作物料
List<TwentyMaterialTemplateExcelDTO> excelContext = EecExcelUtil.getExcelContext(file.getInputStream(), TwentyMaterialTemplateExcelDTO.class);
if (CollectionUtil.isNotEmpty(excelContext) && excelContext.size() > 1000) {
if (excelContext.size() > 10000) {
return ResultVO.error("导入失败最多支持10000条批量导入");
}
redisTemplate.opsForValue().set(buildKey(userCode + ":updateBatchImport"), file.getOriginalFilename());
// 大数据量子线程分批次提交OA每批1000条主线程提前返回结果给前端
CompletableFuture<Integer> task1 = CompletableFuture.supplyAsync(() -> {