diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/UpDownStockupAreaVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/UpDownStockupAreaVO.java index 0170dfa25..36004da15 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/UpDownStockupAreaVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/UpDownStockupAreaVO.java @@ -25,6 +25,10 @@ public class UpDownStockupAreaVO { private String goodsType; + private String orderCode; + + private Long orderId; + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DisStockListDetailMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DisStockListDetailMapper.xml index a5a43c971..466b2fa84 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DisStockListDetailMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DisStockListDetailMapper.xml @@ -58,6 +58,8 @@ ldsl.description_goods AS materielName, ldsl.market_id AS marketId, ldsl.market_name AS marketName, + ldsl.id AS orderId, + ldsl.order_code AS orderCode, ldsl.incoming_batch AS incomingBatch, #{warehouseId} AS warehouseId, FROM diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseUpdownStockupAreaApiController.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseUpdownStockupAreaApiController.java index e8b3b0944..28814e92b 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseUpdownStockupAreaApiController.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/api/WarehouseUpdownStockupAreaApiController.java @@ -38,6 +38,39 @@ public class WarehouseUpdownStockupAreaApiController { private final IWarehouseUpdownStockupAreaService warehouseUpdownStockupAreaService; + @ResponseBody + @PostMapping("/upShelfScanAllocation") + @ApiOperationSupport(order = 1) + @ApiOperation(value = "上架扫描备货库位", notes = "传入trayTypeDTO") + public R upShelfScanAllocation(@RequestBody UpdownTypeDTO updownTypeDTO ) { + String method = "###########upShelfScanAllocation: "; + log.info(method + "上架扫描库位 updownTypeDTO={}", updownTypeDTO); + Long allocationId = updownTypeDTO.getAllocationId();//库位ID + try{ + + BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); + if(Objects.isNull(myCurrentWarehouse)){ + log.warn(method+"仓库信息不能为空"); + return R.fail(403,"仓库信息不能为空"); + } + + if(Objects.isNull(allocationId)){ + log.warn(method+"库位id不能为空 allocationId={}",allocationId); + return R.fail(403,"库位id不能为空"); + } + + //查询该库位的货物信息 + UpShelfAllocationVO upShelfAllocationVO = warehouseUpdownStockupAreaService.upShelfScanAllocation(allocationId,myCurrentWarehouse.getId()); + return R.data(upShelfAllocationVO); + }catch (CustomerException e){ + log.warn(e.message); + return Resp.scanFail(e.code,e.message,e.message); + }catch (Exception e){ + log.error(method+"系统异常,联系管理员",e); + return R.fail(500,"系统异常,联系管理员"); + } + } + @ResponseBody @PostMapping("/upShelfPackage") @@ -109,7 +142,6 @@ public class WarehouseUpdownStockupAreaApiController { return R.data(upDownStockupAreaVO); }else { return Resp.scanFail("该包件不存在","该包件不存在"); - } }catch (CustomerException e){ log.warn(e.message); diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseUpdownStockupAreaService.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseUpdownStockupAreaService.java index 9210563ee..21b65fbbd 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseUpdownStockupAreaService.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/IWarehouseUpdownStockupAreaService.java @@ -57,4 +57,12 @@ public interface IWarehouseUpdownStockupAreaService extends BaseService upStockupAreaPackageDTOS, Long allocationId, Long id); + + /** + * 备货库位扫描 + * @param allocationId + * @param id + * @return + */ + UpShelfAllocationVO upShelfScanAllocation(Long allocationId, Long warehouseId); } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java index 9552a5100..175a844ac 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java @@ -107,6 +107,7 @@ public class WarehouseUpdownStockupAreaServiceImpl extends BaseServiceImpl