From 8f1ccf03537263733860bd02e989326d8849fe2b Mon Sep 17 00:00:00 2001 From: chengzhaofeng Date: Tue, 18 Mar 2025 14:13:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8):=E4=BC=98=E5=8C=96=E8=B4=A8=E6=A3=80?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6=EF=BC=9B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=A7=E6=89=B9=E6=AC=A1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foreverwin/mom/wms/dto/InventoryQueryReportDto.java | 6 ++++++ .../service/impl/InventoryQueryReportServiceImpl.java | 6 ++++-- .../mom/wms/mapper/InventoryQueryReportMapper.java | 4 ++-- .../main/resources/mapper/InventoryQueryReportMapper.xml | 9 +++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/mom-wms-api/src/main/java/com/foreverwin/mom/wms/dto/InventoryQueryReportDto.java b/mom-wms-api/src/main/java/com/foreverwin/mom/wms/dto/InventoryQueryReportDto.java index 12eeabe..60e152e 100644 --- a/mom-wms-api/src/main/java/com/foreverwin/mom/wms/dto/InventoryQueryReportDto.java +++ b/mom-wms-api/src/main/java/com/foreverwin/mom/wms/dto/InventoryQueryReportDto.java @@ -196,6 +196,12 @@ public class InventoryQueryReportDto { @ExcelProperty("供应商条码") private String supplierBarcode; + /** + * 大批次 + */ + @ExcelProperty("大批次") + private String bigBatchNo; + /** * 入库时间 */ diff --git a/mom-wms-core/src/main/java/com/foreverwin/mom/wms/service/impl/InventoryQueryReportServiceImpl.java b/mom-wms-core/src/main/java/com/foreverwin/mom/wms/service/impl/InventoryQueryReportServiceImpl.java index 4fe8aa8..1024439 100644 --- a/mom-wms-core/src/main/java/com/foreverwin/mom/wms/service/impl/InventoryQueryReportServiceImpl.java +++ b/mom-wms-core/src/main/java/com/foreverwin/mom/wms/service/impl/InventoryQueryReportServiceImpl.java @@ -53,6 +53,7 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ List storageLocationList = splitSearchField(inventoryQueryReportDto.getStorageLocation()); boolean allowZero = inventoryQueryReportDto.isAllowZero(); List supplierBarcodeList = splitSearchField(inventoryQueryReportDto.getSupplierBarcode()); + List bigBatchNoList = splitSearchField(inventoryQueryReportDto.getBigBatchNo()); List shopOrderList = splitSearchField(inventoryQueryReportDto.getShopOrder()); BigDecimal qtyOnHand = inventoryQueryReportDto.getQtyOnHand(); // 作业规则 IS_SECRCY为Y代表保密用IN;IS_SECRCY不为Y,不配置此作业规则,用 not in @@ -61,7 +62,7 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ if (StrUtil.isNotBlank(inventoryQueryReportDto.getIsSecrecy()) && "Y".equals(inventoryQueryReportDto.getIsSecrecy().toUpperCase())) { isSecrecy = inventoryQueryReportDto.getIsSecrecy(); } - IPage inventoryQueryReportDtoIPage = inventoryQueryReportMapper.retrieve(iPage, site, erpStorageLocationList, inventoryIdList, carrierList, statusList, itemList, batchNoList, vendorBatchNoList, qualityInspectionStatusList, inventorySpecialMarking, dnOrder,qtyOnHand, dnOrderSeq, rollType, storageBinList, storageLocationList, allowZero, typeNo, shopOrderList, supplierBarcodeList, isSecrecy); + IPage inventoryQueryReportDtoIPage = inventoryQueryReportMapper.retrieve(iPage, site, erpStorageLocationList, inventoryIdList, carrierList, statusList, itemList, batchNoList, vendorBatchNoList, qualityInspectionStatusList, inventorySpecialMarking, dnOrder,qtyOnHand, dnOrderSeq, rollType, storageBinList, storageLocationList, allowZero, typeNo, shopOrderList, supplierBarcodeList, bigBatchNoList, isSecrecy); if (CollectionUtil.isNotEmpty(inventoryQueryReportDtoIPage.getRecords())) { BigDecimal totalQty = inventoryQueryReportMapper.retrieveTotalQty(site, erpStorageLocationList, inventoryIdList, carrierList, statusList, itemList, batchNoList, vendorBatchNoList, qualityInspectionStatusList, inventorySpecialMarking, dnOrder, dnOrderSeq, rollType, storageBinList, storageLocationList, allowZero, typeNo, shopOrderList, supplierBarcodeList, isSecrecy); @@ -95,6 +96,7 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ List storageLocationList = splitSearchField(inventoryQueryReportDto.getStorageLocation()); boolean allowZero = inventoryQueryReportDto.isAllowZero(); List supplierBarcodeList = splitSearchField(inventoryQueryReportDto.getSupplierBarcode()); + List bigBatchNoList = splitSearchField(inventoryQueryReportDto.getBigBatchNo()); List shopOrderList = splitSearchField(inventoryQueryReportDto.getShopOrder()); BigDecimal qtyOnHand = inventoryQueryReportDto.getQtyOnHand(); @@ -105,7 +107,7 @@ public class InventoryQueryReportServiceImpl implements InventoryQueryReportServ isSecrecy = inventoryQueryReportDto.getIsSecrecy(); } - List inventoryQueryReportList = inventoryQueryReportMapper.retrieve(site, erpStorageLocationList, inventoryIdList, carrierList, statusList, itemList, batchNoList, vendorBatchNoList, qualityInspectionStatusList, inventorySpecialMarking, dnOrder,qtyOnHand, dnOrderSeq,rollType, storageBinList, storageLocationList, allowZero, typeNo, shopOrderList, supplierBarcodeList, isSecrecy); + List inventoryQueryReportList = inventoryQueryReportMapper.retrieve(site, erpStorageLocationList, inventoryIdList, carrierList, statusList, itemList, batchNoList, vendorBatchNoList, qualityInspectionStatusList, inventorySpecialMarking, dnOrder,qtyOnHand, dnOrderSeq,rollType, storageBinList, storageLocationList, allowZero, typeNo, shopOrderList, supplierBarcodeList, bigBatchNoList, isSecrecy); for (InventoryQueryReportDto record : inventoryQueryReportList) { String state = record.getStatus(); diff --git a/mom-wms-db/src/main/java/com/foreverwin/mom/wms/mapper/InventoryQueryReportMapper.java b/mom-wms-db/src/main/java/com/foreverwin/mom/wms/mapper/InventoryQueryReportMapper.java index b11731e..0d00463 100644 --- a/mom-wms-db/src/main/java/com/foreverwin/mom/wms/mapper/InventoryQueryReportMapper.java +++ b/mom-wms-db/src/main/java/com/foreverwin/mom/wms/mapper/InventoryQueryReportMapper.java @@ -27,9 +27,9 @@ import java.util.List; */ @Mapper public interface InventoryQueryReportMapper extends BaseMapper { - IPage retrieve(IPage iPage, @Param("site") String site, @Param("erpStorageLocationList") List erpStorageLocationList, @Param("inventoryIdList") List inventoryIdList, @Param("carrierList") List carrierList, @Param("statusList") List statusList, @Param("itemList") List itemList, @Param("batchNoList") List batchNoList, @Param("vendorBatchNoList") List vendorBatchNoList, @Param("qualityInspectionStatusList") List qualityInspectionStatusList, @Param("inventorySpecialMarking") String inventorySpecialMarking, @Param("dnOrder") String dnOrder,@Param("qtyOnHand")BigDecimal qtyOnHand, @Param("dnOrderSeq") Integer dnOrderSeq, @Param("rollType") String rollType, @Param("storageBinList") List storageBinList, @Param("storageLocationList") List storageLocationList, @Param("allowZero") boolean allowZero, @Param("typeNo") String typeNo, @Param("shopOrderList") List shopOrderList, @Param("supplierBarcodeList") List supplierBarcodeList, @Param("isSecrecy") String isSecrecy); + IPage retrieve(IPage iPage, @Param("site") String site, @Param("erpStorageLocationList") List erpStorageLocationList, @Param("inventoryIdList") List inventoryIdList, @Param("carrierList") List carrierList, @Param("statusList") List statusList, @Param("itemList") List itemList, @Param("batchNoList") List batchNoList, @Param("vendorBatchNoList") List vendorBatchNoList, @Param("qualityInspectionStatusList") List qualityInspectionStatusList, @Param("inventorySpecialMarking") String inventorySpecialMarking, @Param("dnOrder") String dnOrder,@Param("qtyOnHand")BigDecimal qtyOnHand, @Param("dnOrderSeq") Integer dnOrderSeq, @Param("rollType") String rollType, @Param("storageBinList") List storageBinList, @Param("storageLocationList") List storageLocationList, @Param("allowZero") boolean allowZero, @Param("typeNo") String typeNo, @Param("shopOrderList") List shopOrderList, @Param("supplierBarcodeList") List supplierBarcodeList, @Param("bigBatchNoList") List bigBatchNoList, @Param("isSecrecy") String isSecrecy); - List retrieve(@Param("site") String site, @Param("erpStorageLocationList") List erpStorageLocationList, @Param("inventoryIdList") List inventoryIdList, @Param("carrierList") List carrierList, @Param("statusList") List statusList, @Param("itemList") List itemList, @Param("batchNoList") List batchNoList, @Param("vendorBatchNoList") List vendorBatchNoList, @Param("qualityInspectionStatusList") List qualityInspectionStatusList, @Param("inventorySpecialMarking") String inventorySpecialMarking, @Param("dnOrder") String dnOrder,@Param("qtyOnHand")BigDecimal qtyOnHand, @Param("dnOrderSeq") Integer dnOrderSeq, @Param("rollType") String rollType, @Param("storageBinList") List storageBinList, @Param("storageLocationList") List storageLocationList, @Param("allowZero") boolean allowZero, @Param("typeNo") String typeNo, @Param("shopOrderList") List shopOrderList, @Param("supplierBarcodeList") List supplierBarcodeList, @Param("isSecrecy") String isSecrecy); + List retrieve(@Param("site") String site, @Param("erpStorageLocationList") List erpStorageLocationList, @Param("inventoryIdList") List inventoryIdList, @Param("carrierList") List carrierList, @Param("statusList") List statusList, @Param("itemList") List itemList, @Param("batchNoList") List batchNoList, @Param("vendorBatchNoList") List vendorBatchNoList, @Param("qualityInspectionStatusList") List qualityInspectionStatusList, @Param("inventorySpecialMarking") String inventorySpecialMarking, @Param("dnOrder") String dnOrder,@Param("qtyOnHand")BigDecimal qtyOnHand, @Param("dnOrderSeq") Integer dnOrderSeq, @Param("rollType") String rollType, @Param("storageBinList") List storageBinList, @Param("storageLocationList") List storageLocationList, @Param("allowZero") boolean allowZero, @Param("typeNo") String typeNo, @Param("shopOrderList") List shopOrderList, @Param("supplierBarcodeList") List supplierBarcodeList, @Param("bigBatchNoList") List bigBatchNoList, @Param("isSecrecy") String isSecrecy); BigDecimal retrieveTotalQty(@Param("site") String site, @Param("erpStorageLocationList") List erpStorageLocationList, @Param("inventoryIdList") List inventoryIdList, @Param("carrierList") List carrierList, @Param("statusList") List statusList, @Param("itemList") List itemList, @Param("batchNoList") List batchNoList, @Param("vendorBatchNoList") List vendorBatchNoList, @Param("qualityInspectionStatusList") List qualityInspectionStatusList, @Param("inventorySpecialMarking") String inventorySpecialMarking, @Param("dnOrder") String dnOrder, @Param("dnOrderSeq") Integer dnOrderSeq, @Param("rollType") String rollType, @Param("storageBinList") List storageBinList, @Param("storageLocationList") List storageLocationList, @Param("allowZero") boolean allowZero, @Param("typeNo") String typeNo, @Param("shopOrderList") List shopOrderList, @Param("supplierBarcodeList") List supplierBarcodeList, @Param("isSecrecy") String isSecrecy); diff --git a/mom-wms-db/src/main/resources/mapper/InventoryQueryReportMapper.xml b/mom-wms-db/src/main/resources/mapper/InventoryQueryReportMapper.xml index efa5fc5..8142963 100644 --- a/mom-wms-db/src/main/resources/mapper/InventoryQueryReportMapper.xml +++ b/mom-wms-db/src/main/resources/mapper/InventoryQueryReportMapper.xml @@ -32,6 +32,7 @@ +