diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java index c1c02fb48..1dcc06cf3 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java @@ -36,7 +36,8 @@ import java.util.Date; public class DistributionParcelListVO extends DistributionParcelListEntity { private static final long serialVersionUID = 1L; - private String stockupStatus; + private String stockupStatus; //备货状态 + private String stockupStatusName; //备货名称 private Date stockupDate; private String stockupArea; private String goodsAllocation; diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionParcelListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionParcelListController.java index 4eb391aee..b19a04c53 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionParcelListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionParcelListController.java @@ -102,9 +102,9 @@ public class DistributionParcelListController extends BladeController { @GetMapping("/parcelListOwn") @ApiOperationSupport(order = 2) @ApiOperation(value = "分页", notes = "传入distributionParcelList") - public R> getParcelListOwn(@ApiIgnore @RequestParam Map distributionParcelList, Query query) { + public R> getParcelListOwn(@ApiIgnore @RequestParam Map distributionParcelList, Query query) { - IPage pages = distributionParcelListService.getParcelListOwn(Condition.getPage(query), distributionParcelList); + IPage pages = distributionParcelListService.getParcelListOwn(Condition.getPage(query), distributionParcelList); return R.data(pages); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockController.java index ef8add6cb..d6f68055d 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockController.java @@ -100,6 +100,17 @@ public class DistributionStockController extends BladeController { return R.status(distributionStockService.save(distributionStock)); } + /** + * 库存品详情信息 新增 + */ + @PostMapping("/addStockDetail") + @ApiOperationSupport(order = 4) + @ApiOperation(value = "新增", notes = "传入distributionStock") + public R addStockDetail(@Valid @RequestBody DistributionStockEntity distributionStock) { + distributionStockService.save(distributionStock); + return R.status(true); + } + /** * 库存品详情信息 修改 */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml index d2176e039..386c5b05a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml @@ -301,7 +301,7 @@ ldr.reservation_num reservationNum, COALESCE(lds.loaded_number + lds.loadedin_number, 0) loadingNub, (SELECT COALESCE(COUNT(*), 0) from logpm_distribution_reservation_stockarticle ldrs WHERE ldrs.reservation_id =ldr.id ) ordNub, - COALESCE(lds.loaded_number + lds.loadedin_number, 0) signNub + COALESCE(lds.received_quantity + lds.receivedin_quantity, 0) signNub FROM logpm_distribution_signfor lds JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index 8430b728b..efe354780 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -396,7 +396,7 @@ - SELECT DISTINCT + + select DISTINCT ldrp.packet_bar_code packetBarCode,ldsa.description_goods description_goods + from logpm_distribution_reservation_package ldrp + left JOIN logpm_distribution_stock_article ldsa on ldsa.id = ldrp.stock_article_id + WHERE ldrp.stock_article_id = #{id} and ldrp.packet_bar_status in (1,3)