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 d76af2e31..3c867c190 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 @@ -2599,7 +2599,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl orderDetailList = orderDetailClient.findByOrderCode(orderCode,oldWarehouseId); for (OrderDetailEntity orderDetailEntity:orderDetailList){ @@ -1650,6 +1653,12 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService { entity.setConditions(1); entity.setWarehouse(distributionStockArticleEntity.getWarehouse()); entity.setWarehouseId(distributionStockArticleEntity.getWarehouseId()); + String brand = distributionStockArticleEntity.getBrand(); + entity.setBrandName(brand); + BasicdataBrandEntity basicdataBrand = basicdataBrandClient.findEntityByName(brand); + if(!Objects.isNull(basicdataBrand)){ + entity.setBrandId(basicdataBrand.getId()); + } entity.setStockArticleId(distributionStockArticleEntity.getId()); entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); entity.setBrandName(distributionStockArticleEntity.getBrand()); @@ -1694,6 +1703,13 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService { } } + entity.setWaybillNumber(waybillNo); + + WarehouseWaybillEntity warehouseWaybillEntity = warehouseWaybillClient.findByWaybillNo(waybillNo); + if(!Objects.isNull(warehouseWaybillEntity)){ + entity.setWaybillId(warehouseWaybillEntity.getId()); + entity.setWaybillNumber(waybillNo); + } entity.setOrderPackageFreezeStatus(OrderPackageFreezeStatusConstant.weidongjie.getValue()); entity.setOrderPackageReservationStatus(OrderPackageReservationStatusConstant.daiyuyue.getValue()); @@ -1701,7 +1717,7 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService { entity.setOrderPackageStockupStatus(OrderPackageStockupStatusConstant.daibeihuo.getValue()); entity.setOrderCode(distributionStockArticleEntity.getOrderCode()); entity.setServiceNumber(distributionStockArticleEntity.getServiceNumber()); - entity.setWaybillNumber(waybillNo); + // 增加 进销商 名称 编码 发站仓 entity.setSendWarehouseName(distributionStockArticleEntity.getSendWarehouseName()); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java index 67de349f2..41882006f 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java @@ -51,11 +51,12 @@ public class BillladingController { //当前登录人选择的仓库 BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); - if(Objects.isNull(myCurrentWarehouse)){ - log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); - return R.fail(403,"多仓权限无法操作,请选择仓库"); + if(!Objects.isNull(myCurrentWarehouse)){ +// log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); +// return R.fail(403,"多仓权限无法操作,请选择仓库"); + billladingDTO.setWarehouseId(myCurrentWarehouse.getId()); } - billladingDTO.setWarehouseId(myCurrentWarehouse.getId()); + IPage pages = trunklineBillladingService.pageList(billladingDTO); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java index d1b61c6f2..973c7842b 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java @@ -1037,6 +1037,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl map = new HashMap<>(); map.put("orders", orders); + + if(StringUtil.isNotBlank(audio)){ + return Resp.scanData("串货", audio,map); + } WarehouseTrayTypeEntity trayTypeEntity = trayTypeClient.findTrayTypeEntity(trayCode); if(!Objects.isNull(trayTypeEntity)){ Integer totalNum = trayTypeEntity.getTotalNum(); diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java index 01451cb52..5b9641bf3 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java @@ -139,6 +139,8 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl