From cedfb7ac8ff2286275c7cb4d7126ee0344bccc44 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期六, 29 十一月 2025 17:53:49 +0800
Subject: [PATCH] 修改上报间隔

---
 rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/ReportMsgServiceImpl.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/ReportMsgServiceImpl.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/ReportMsgServiceImpl.java
index 56a5de0..92c85a5 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/ReportMsgServiceImpl.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/ReportMsgServiceImpl.java
@@ -389,7 +389,7 @@
                 Set<Long> stockIds = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toSet());
                 List<Stock> stocks = stockService.listByIds(stockIds);
                 //杩囨护鎷h揣鍏ュ簱鏄庣粏锛岄伩鍏嶄笂鎶�
-                List<Stock> stockList = stocks.stream().filter(stock -> stock.getType().equals(OrderType.ORDER_OUT.type)).collect(Collectors.toList());
+                List<Stock> stockList = stocks.stream().filter(stock -> stock.getType().equals(OrderType.ORDER_OUT.type) && !Objects.isNull(stock.getSourceCode())).collect(Collectors.toList());
                 List<Long> list = stockList.stream().map(Stock::getId).collect(Collectors.toList());
                 List<StockItem> stockItems1 = stockItemService.list(new LambdaQueryWrapper<StockItem>().in(StockItem::getStockId, list));
                 String finalNickName = nickName;
@@ -497,7 +497,7 @@
             List<StockItem> stockItems = stockItemService.list(new LambdaQueryWrapper<StockItem>()
                     .eq(StockItem::getFieldsIndex, orderItem.getFieldsIndex()));
             //鑾峰彇搴撳瓨涓鍗曞簱浣�
-            Set<Long> longSet = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toSet());
+            List<Long> longSet = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toList());
             //鑾峰彇搴撳瓨搴撲綅淇℃伅
             Stock stocks = stockService.getOne(new LambdaQueryWrapper<Stock>()
                     .in(Stock::getId, longSet)
@@ -578,7 +578,7 @@
 
         try {
             //浼戠湢3绉�
-            Thread.sleep(3000);
+            Thread.sleep(300);
         } catch (InterruptedException e) {
             throw new RuntimeException(e);
         }

--
Gitblit v1.9.1