diff --git a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/feign/IBasicdataGoodsAllocationClient.java b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/feign/IBasicdataGoodsAllocationClient.java index b4635c57a..408e76caf 100644 --- a/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/feign/IBasicdataGoodsAllocationClient.java +++ b/blade-service-api/logpm-basicdata-api/src/main/java/com/logpm/basicdata/feign/IBasicdataGoodsAllocationClient.java @@ -81,7 +81,7 @@ public interface IBasicdataGoodsAllocationClient { * @return */ @GetMapping(API_PREFIX+"/scanStockUpAllocationByCode") - BasicdataGoodsAllocationEntity scanStockUpAllocationByCode(Long stockUpAreaCode); + BasicdataGoodsAllocationEntity scanStockUpAllocationByCode(@RequestParam Long stockUpAreaCode); /** * 查询库位的完整名称,按照货区-货架-货位的方式呈现 diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupListVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupListVO.java index c00ebbcbb..30cbfb05a 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupListVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupListVO.java @@ -26,6 +26,8 @@ public class DistributionStockupListVO implements Serializable { private String trays;//托盘 + private String mallName;//商场名称 + private Integer orderNum;//订单总数 private Integer stockupNum;//备货数 private Integer inventoryNub;//库存品数 diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAllocationServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAllocationServiceImpl.java index 8e2c54e02..9ed90c312 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAllocationServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataGoodsAllocationServiceImpl.java @@ -300,7 +300,6 @@ public class BasicdataGoodsAllocationServiceImpl extends BaseServiceImpl${bladex.project.version}--> - - org.springblade - logpm-factory-api - ${bladex.project.version} - compile - + + + + + + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java index 17510a946..53fdd2281 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java @@ -209,14 +209,15 @@ public class DistributionStockupAppController extends BladeController { @ApiOperation(value = "检查备货区", notes = "传入stockupDTO") public R scanStockUpArea(@RequestParam Long stockUpAreaCode) { BasicdataGoodsAllocationEntity basicdataGoodsAllocationEntity = basicdataGoodsAllocationClient.scanStockUpAllocationByCode(stockUpAreaCode); + if (Func.isEmpty(basicdataGoodsAllocationEntity)){ + return Resp.scanFail("无此库位信息","无此库位信息"); + } Long goodsAreaId = basicdataGoodsAllocationEntity.getGoodsAreaId(); BasicdataGoodsAreaEntity entityByGoodsAreaId = basicdataGoodsAreaClient.getEntityByGoodsAreaId(goodsAreaId); - if (entityByGoodsAreaId.getAreaType().equals("1")){ + if (entityByGoodsAreaId.getAreaType().equals("2")){ return Resp.scanFail("不是备货区库位","不是备货区库位"); } - if (Func.isEmpty(basicdataGoodsAllocationEntity)){ - return Resp.scanFail("无此库位信息","无此库位信息"); - } + return R.data(basicdataGoodsAllocationEntity); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml index db97ca198..a34666931 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml @@ -414,6 +414,14 @@ LEFT JOIN logpm_distribution_reservation ldr on ldr.id = ldsi.reservation_id where ds.id = lds.id ) customer, + + + + + + + + ( select GROUP_CONCAT(DISTINCT lwug.position_code ) from logpm_distribution_stockup ds @@ -481,6 +489,14 @@ LEFT JOIN logpm_distribution_stock_article ldsa on ldbs.stock_article_id = ldsa.id where ldbs.bill_lading_id = ldsi.reservation_id ) customer, + + + + + + + + ( select GROUP_CONCAT(DISTINCT ldpl.goods_allocation SEPARATOR ',') from logpm_distrilbution_bill_stock ldbs diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java index 25cab642b..94aa83cca 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java @@ -777,7 +777,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl advancePageList(AdvanceDTO advanceDTO) {