From d45fd7768ac59fb44e65ce574aaf9fda1489488b Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期一, 23 六月 2025 14:03:48 +0800 Subject: [PATCH] #订单导入上限增加 --- src/main/java/com/zy/asrs/importexcle/ImportOrderListener.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/importexcle/ImportOrderListener.java b/src/main/java/com/zy/asrs/importexcle/ImportOrderListener.java index e862d93..da5c02b 100644 --- a/src/main/java/com/zy/asrs/importexcle/ImportOrderListener.java +++ b/src/main/java/com/zy/asrs/importexcle/ImportOrderListener.java @@ -69,7 +69,7 @@ public void invoke(ImportOrderDto data, AnalysisContext context) { log.info("瑙f瀽鍒扮 {} 鏉℃暟鎹�:{}", ++count, JSON.toJSONString(data)); list.add(data); - if (context.getCurrentRowNum() == 5) { + if (context.getCurrentRowNum() == 3) { String time = DateUtils.convert(new Date(),DateUtils.yyyyMMddHHmmss_F); Order order2 = orderService.selectByNo(list.get(0).getColumn2()); // 璁㈠崟鍙� if(order2 != null) { @@ -86,8 +86,8 @@ order.setOrderNo(orderNo); order.setOrderTime(time); order.setDocType(docType.getDocId()); - order.setCstmrName(Cools.isEmpty(list.get(2).getColumn2()) ? "" : list.get(2).getColumn2()); // 瀹㈡埛鍚嶇О - order.setMemo(Cools.isEmpty(list.get(3).getColumn2()) ? "" : list.get(3).getColumn2()); // 澶囨敞 +// order.setCstmrName(Cools.isEmpty(list.get(2).getColumn2()) ? "" : list.get(2).getColumn2()); // 瀹㈡埛鍚嶇О +// order.setMemo(Cools.isEmpty(list.get(3).getColumn2()) ? "" : list.get(3).getColumn2()); // 澶囨敞 order.setSettle(1L); order.setStatus(1); order.setCreateBy(userId); @@ -155,7 +155,7 @@ // // log.info("瀛樺偍鏁版嵁搴撴垚鍔燂紒"); // } -private static final int MAX_BATCH_SIZE = 150; // 寤鸿 100~200锛屾牴鎹瓧娈垫暟鎺у埗 +private static final int MAX_BATCH_SIZE = 50; // 寤鸿 100~200锛屾牴鎹瓧娈垫暟鎺у埗 /** * 鍒嗘壒瀛樺偍鏁版嵁搴擄紝閬垮厤SQL Server鍙傛暟涓婇檺锛�2100锛夐敊璇� @@ -178,6 +178,8 @@ } } else { orderDetl.setBrand(importOrderDto.getColumn1()); + orderDetl.setSupp(importOrderDto.getColumn3()); + orderDetl.setMemo(importOrderDto.getColumn4()); } orderDetl.setBatch(""); -- Gitblit v1.9.1