refactor(int-core): 将 Vector 替换为 ArrayList

-将 OutMaterialSapServiceImpl 类中的 Vector 集合替换为 ArrayList
- 优化了 inventories变量的实现,使用更高效的 ArrayList 替代 Vector
-保留了 inventoryLogs 变量的类型,仍使用 Vector
This commit is contained in:
tangyu 2025-06-24 16:43:02 +08:00
parent 6ace665959
commit 7cfdf4285b

View File

@ -500,8 +500,8 @@ public class OutMaterialSapServiceImpl implements OutMaterialSapService {
public void warehousing(List<OutMaterialCompleteLog> outMaterialCompleteLogs, String site) {
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
DateTimeFormatter dateTimeFormatter2 = DateTimeFormatter.ofPattern("yyyy/MM/dd");
Vector<Inventory> inventories = new Vector<>();
Vector<InventoryLog> inventoryLogs = new Vector<>();
List<Inventory> inventories = new ArrayList<>();
List<InventoryLog> inventoryLogs = new Vector<>();
for (OutMaterialCompleteLog outMaterialCompleteLog : outMaterialCompleteLogs) {
String dataTime = String.valueOf(outMaterialCompleteLog.getSyncPostingDate());