diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockListVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockListVO.java index a65fa9cdb..99c8f0977 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockListVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockListVO.java @@ -97,4 +97,15 @@ public class DistributionStockListVO extends DistributionStockListEntity { private Integer stockupNum; + /** + * 托盘id + */ + @ApiModelProperty(value = "托盘id") + private String trayCode; + /** + * 货位信息 + */ + @ApiModelProperty(value = "货位信息") + private String positionCode; + } diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/queryOrderVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/queryOrderVO.java index 0a3e6cb4d..c5141e58a 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/queryOrderVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/app/queryOrderVO.java @@ -27,7 +27,7 @@ public class queryOrderVO extends DistributionStockArticleEntity { * 库存品列表 */ @ApiModelProperty(value = "库存品列表") - private List stockList = new ArrayList<>(); + private List stockList = new ArrayList<>(); /** * 定制品 diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml index 23514577e..b44468e1e 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataGoodsAreaMapper.xml @@ -278,32 +278,44 @@ + update logpm_distribution_parcel_list set quantity = quantity - #{num} where stock_article_id = #{articleId} - and material_name = #{productName} - and quantity - #{num} >= 0 + and material_name = #{productName} + and quantity - #{num} >= 0 select ldpl.pallet from logpm_distribution_reservation ldr - left join logpm_distribution_reservation_package ldrp on ldrp.reservation_id = ldr.id and ldrp.is_deleted = 0 + left join logpm_distribution_reservation_package ldrp + on ldrp.reservation_id = ldr.id and ldrp.is_deleted = 0 left join logpm_distribution_parcel_list ldpl on ldpl.id = ldrp.parce_list_id and ldpl.is_deleted = 0 where ldr.id = #{reservationId} and ldr.is_deleted = 0 group by ldpl.pallet - + update logpm_distribution_stock_article set grounding_status = #{groundingStatus} where order_code = #{orderCode} - and warehouse_id = #{warehouseId} + and warehouse_id = #{warehouseId} - select ldpl.* from logpm_distribution_parcel_list ldpl - left join logpm_warehouse_tray_goods lwtg on lwtg.association_value = ldpl.order_package_code - left join logpm_warehouse_updown_goods lwug on lwug.association_value = ldpl.order_package_code - where 1=1 - and ldpl.order_code = #{orderCode} - and ldpl.warehouse_id = #{warehouseId} - and lwtg.id is null - and lwug.id is null + left join logpm_warehouse_tray_goods lwtg on lwtg.association_value = ldpl.order_package_code + left join logpm_warehouse_updown_goods lwug on lwug.association_value = ldpl.order_package_code + where 1 = 1 + and ldpl.order_code = #{orderCode} + and ldpl.warehouse_id = #{warehouseId} + and lwtg.id is null + and lwug.id is null + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index 47d2c1bfa..5abf6bbd2 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -2912,7 +2912,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionReservationPackageEntities = distributionReservationPackageMapper.selectList(new QueryWrapper().lambda() .eq(DistributionReservationPackageEntity::getReservationId, reservationEntity.getId()) .eq(DistributionReservationPackageEntity::getStockArticleId, s.getId()) - .ne(DistributionReservationPackageEntity::getPacketBarCode, "2") + .ne(DistributionReservationPackageEntity::getPacketBarStatus, "2") ); // List byReservationIdAndStockArticleId = distributionReservationPackageMapper.getByReservationIdAndStockArticleId(reservationEntity.getId(), s.getId()); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java index 4b1b71867..4f95e3b00 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java @@ -982,10 +982,11 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl distributionParcelListEntitys = distributionParcelListMapper.selectListByOderId(id,collect); //查询订单下的所有库存品 - //List distributionStockListVOS = distributionParcelListMapper.selectStockListByOderId(id,collect); - queryOrderVO.setWrapNum(distributionParcelListEntitys.size()); - queryOrderVO.setInventoryNum(0); + List distributionStockListVOS = distributionParcelListMapper.selectStockListByOderId(id,collect); + queryOrderVO.setWrapNum(distributionParcelListEntitys.size()); + queryOrderVO.setInventoryNum(distributionStockListVOS.size()); queryOrderVO.setList(distributionParcelListEntitys); + queryOrderVO.setStockList(distributionStockListVOS); return queryOrderVO; } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/wrapper/WarehouseStockVOWrapper.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/wrapper/WarehouseStockVOWrapper.java index 56f091b62..0dca4d5e5 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/wrapper/WarehouseStockVOWrapper.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/wrapper/WarehouseStockVOWrapper.java @@ -43,7 +43,10 @@ public class WarehouseStockVOWrapper extends BaseEntityWrapper