|
|
|
@ -155,6 +155,8 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
trayTypeDataVO.setName(trayTypeEntity.getFilterValue()); |
|
|
|
|
trayTypeDataVO.setOrderTotalNum(trayTypeEntity.getOrderTotalNum()); |
|
|
|
|
trayTypeDataVO.setTrayType(trayType); |
|
|
|
|
String trayTypeName = DictBizCache.getValue(DictBizConstant.PALLET_ORDER_TYPE, trayTypeEntity.getTrayType()); |
|
|
|
|
trayTypeDataVO.setTrayTypeName(trayTypeName); |
|
|
|
|
trayTypeDataVO.setMarketId(trayTypeEntity.getMarketId()); |
|
|
|
|
trayTypeDataVO.setMarketName(trayTypeEntity.getMarketName()); |
|
|
|
|
trayTypeDataVO.setReamrk(trayTypeEntity.getRemark()); |
|
|
|
@ -549,7 +551,9 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
log.warn("#########orderScanOrderPackageCode: 不属于同一个"+msg+" 串货 filterValue={} orderPackageCode={}",filterValue,orderPackageCode); |
|
|
|
|
return Resp.scanFail(2001,"不属于同一个"+msg,"窜货,扫描当前托盘"+msg+",窜货1件"); |
|
|
|
|
}else{ |
|
|
|
|
return R.success("扫描成功"); |
|
|
|
|
Map<String,String> map = new HashMap<>(); |
|
|
|
|
map.put("orderCode",orderCode); |
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2034,6 +2038,8 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
List<UpShelfDataVO> packageList = warehouseTrayGoodsService.getUpListByTrayTypeId(trayTypeId); |
|
|
|
|
List<UpShelfDataVO> zeroList = warehouseTrayGoodsService.getZeroUpListByTrayTypeId(trayTypeId); |
|
|
|
|
List<UpShelfDataVO> stockList = warehouseTrayGoodsService.getStockUpListByTrayTypeId(trayTypeId); |
|
|
|
|
packageList.addAll(zeroList); |
|
|
|
|
packageList.addAll(stockList); |
|
|
|
|
// if(PalletProductTypeConstant.CUSTOMIZED.equals(type)){
|
|
|
|
|
// listByTrayTypeId = warehouseTrayGoodsService.getUpListByTrayTypeId(trayTypeId);
|
|
|
|
|
// }else if(PalletProductTypeConstant.ARTIFICIAL.equals(type)){
|
|
|
|
@ -2061,12 +2067,13 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
map.put("trayCode",trayCode); |
|
|
|
|
map.put("trayName",palletName); |
|
|
|
|
map.put("totalNum",totalNum); |
|
|
|
|
map.put("trayNum",totalNum+stockNum); |
|
|
|
|
map.put("orderTotalNum",orderTotalNum); |
|
|
|
|
map.put("stockNum",stockNum); |
|
|
|
|
map.put("stockTotalNum",stockTotalNum); |
|
|
|
|
map.put("packageList",packageList); |
|
|
|
|
map.put("zeroList",zeroList); |
|
|
|
|
map.put("stockList",stockList); |
|
|
|
|
map.put("list",packageList); |
|
|
|
|
// map.put("zeroList",zeroList);
|
|
|
|
|
// map.put("stockList",stockList);
|
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2290,7 +2297,8 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
List<UpShelfDataVO> packageList = warehouseTrayGoodsService.getUpListByTrayTypeId(trayTypeId); |
|
|
|
|
List<UpShelfDataVO> zeroList = warehouseTrayGoodsService.getZeroUpListByTrayTypeId(trayTypeId); |
|
|
|
|
List<UpShelfDataVO> stockList = warehouseTrayGoodsService.getStockUpListByTrayTypeId(trayTypeId); |
|
|
|
|
|
|
|
|
|
packageList.addAll(zeroList); |
|
|
|
|
packageList.addAll(stockList); |
|
|
|
|
// List<UpShelfDataVO> listByTrayTypeId = null;
|
|
|
|
|
// if(PalletProductTypeConstant.CUSTOMIZED.equals(type)){
|
|
|
|
|
// listByTrayTypeId = warehouseTrayGoodsService.getUpListByTrayTypeId(trayTypeId);
|
|
|
|
@ -2317,12 +2325,13 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
map.put("trayCode",trayCode); |
|
|
|
|
map.put("trayName",palletName); |
|
|
|
|
map.put("totalNum",totalNum); |
|
|
|
|
map.put("trayNum",totalNum+stockNum); |
|
|
|
|
map.put("orderTotalNum",orderTotalNum); |
|
|
|
|
map.put("stockNum",stockNum); |
|
|
|
|
map.put("stockTotalNum",stockTotalNum); |
|
|
|
|
map.put("packageList",packageList); |
|
|
|
|
map.put("zeroList",zeroList); |
|
|
|
|
map.put("stockList",stockList); |
|
|
|
|
map.put("list",packageList); |
|
|
|
|
// map.put("zeroList",zeroList);
|
|
|
|
|
// map.put("stockList",stockList);
|
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -2677,36 +2686,52 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
String trayType = targetTrayTypeEntity.getTrayType();//打托方式
|
|
|
|
|
Long filterId = targetTrayTypeEntity.getFilterId(); |
|
|
|
|
String filterValue = targetTrayTypeEntity.getFilterValue(); |
|
|
|
|
if("1".equals(type)){ |
|
|
|
|
//订制品
|
|
|
|
|
if("10".equals(trayType)){//服务号
|
|
|
|
|
panduanPackageByService(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("20".equals(trayType)){//订单自编号
|
|
|
|
|
panduanPackageByOrderCode(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("30".equals(trayType)){//商场
|
|
|
|
|
panduanPackageByMarket(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("40".equals(trayType)){//门店
|
|
|
|
|
panduanPackageByStore(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("50".equals(trayType)){//客户
|
|
|
|
|
panduanPackageByCustomer(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("60".equals(trayType)){//仓库
|
|
|
|
|
panduanPackageByWarehouse(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
} |
|
|
|
|
}else if("2".equals(type)){ |
|
|
|
|
//零担
|
|
|
|
|
if("10".equals(trayType)){//运单号
|
|
|
|
|
panduanZeroByWaybillNo(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("20".equals(trayType)){//订单自编码(零担)
|
|
|
|
|
panduanZeroByOrderCode(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
} |
|
|
|
|
}else if("3".equals(type)){ |
|
|
|
|
//库存品
|
|
|
|
|
if("10".equals(trayType)){//物料名称
|
|
|
|
|
panduanStockByMaterialName(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("20".equals(trayType)){//物料编码
|
|
|
|
|
panduanStockByMaterialId(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if("10".equals(trayType)){//服务号
|
|
|
|
|
panduanPackageByService(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("20".equals(trayType)){//订单自编号
|
|
|
|
|
panduanPackageByOrderCode(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("30".equals(trayType)){//商场
|
|
|
|
|
panduanPackageByMarket(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("40".equals(trayType)){//门店
|
|
|
|
|
panduanPackageByStore(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("50".equals(trayType)){//客户
|
|
|
|
|
panduanPackageByCustomer(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
}else if("60".equals(trayType)){//仓库
|
|
|
|
|
panduanPackageByWarehouse(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if("1".equals(type)){
|
|
|
|
|
// //订制品
|
|
|
|
|
// if("10".equals(trayType)){//服务号
|
|
|
|
|
// panduanPackageByService(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("20".equals(trayType)){//订单自编号
|
|
|
|
|
// panduanPackageByOrderCode(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("30".equals(trayType)){//商场
|
|
|
|
|
// panduanPackageByMarket(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("40".equals(trayType)){//门店
|
|
|
|
|
// panduanPackageByStore(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("50".equals(trayType)){//客户
|
|
|
|
|
// panduanPackageByCustomer(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("60".equals(trayType)){//仓库
|
|
|
|
|
// panduanPackageByWarehouse(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }
|
|
|
|
|
// }else if("2".equals(type)){
|
|
|
|
|
// //零担
|
|
|
|
|
// if("10".equals(trayType)){//运单号
|
|
|
|
|
// panduanZeroByWaybillNo(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("20".equals(trayType)){//订单自编码(零担)
|
|
|
|
|
// panduanZeroByOrderCode(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }
|
|
|
|
|
// }else if("3".equals(type)){
|
|
|
|
|
// //库存品
|
|
|
|
|
// if("10".equals(trayType)){//物料名称
|
|
|
|
|
// panduanStockByMaterialName(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }else if("20".equals(trayType)){//物料编码
|
|
|
|
|
// panduanStockByMaterialId(sourceTrayGoodsList,filterId,filterValue,targetTrayTypeEntity);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//更新值
|
|
|
|
|
warehouseTrayGoodsService.updateBatchById(sourceTrayGoodsList); |
|
|
|
|
warehouseTrayGoodsLogService.saveLogByTrayGoodsList(sourceTrayGoodsList,"1","合托:绑定","1",targetTrayTypeEntity.getWarehouseId()); |
|
|
|
@ -2869,9 +2894,18 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByWarehouse: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByWarehouse: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Long stockArticleId = parcelListEntity.getStockArticleId(); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findEntityByStockArticleId(stockArticleId); |
|
|
|
|
if(Objects.isNull(stockArticleEntity)){ |
|
|
|
|
log.info("#################panduanPackageByWarehouse: 订单信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String warehouse = stockArticleEntity.getWarehouse(); |
|
|
|
|
if(!warehouse.equals(filterValue)){ |
|
|
|
|
trayGoodsEntity.setIsFleeing("1"); |
|
|
|
@ -2888,9 +2922,18 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByCustomer: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByCustomer: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Long stockArticleId = parcelListEntity.getStockArticleId(); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findEntityByStockArticleId(stockArticleId); |
|
|
|
|
if(Objects.isNull(stockArticleEntity)){ |
|
|
|
|
log.info("#################panduanPackageByCustomer: 订单信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String customerName = stockArticleEntity.getCustomerName(); |
|
|
|
|
String customerTelephone = stockArticleEntity.getCustomerTelephone(); |
|
|
|
|
if(!filterValue.equals(customerName+customerTelephone)){ |
|
|
|
@ -2908,9 +2951,18 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByStore: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByStore: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Long stockArticleId = parcelListEntity.getStockArticleId(); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findEntityByStockArticleId(stockArticleId); |
|
|
|
|
if(Objects.isNull(stockArticleEntity)){ |
|
|
|
|
log.info("#################panduanPackageByStore: 订单信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String storeName = stockArticleEntity.getStoreName(); |
|
|
|
|
if(!storeName.equals(filterValue)){ |
|
|
|
|
trayGoodsEntity.setIsFleeing("1"); |
|
|
|
@ -2927,9 +2979,18 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByMarket: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByMarket: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Long stockArticleId = parcelListEntity.getStockArticleId(); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleClient.findEntityByStockArticleId(stockArticleId); |
|
|
|
|
if(Objects.isNull(stockArticleEntity)){ |
|
|
|
|
log.info("#################panduanPackageByMarket: 订单信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String mallName = stockArticleEntity.getMallName(); |
|
|
|
|
if(!mallName.equals(filterValue)){ |
|
|
|
|
trayGoodsEntity.setIsFleeing("1"); |
|
|
|
@ -2946,7 +3007,12 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByOrderCode: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByOrderCode: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
Long stockArticleId = parcelListEntity.getStockArticleId(); |
|
|
|
|
if(!stockArticleId.equals(filterId)){ |
|
|
|
|
trayGoodsEntity.setIsFleeing("1"); |
|
|
|
@ -2963,7 +3029,12 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl<WarehouseTrayT
|
|
|
|
|
Long trayTypeId = targetTrayTypeEntity.getId(); |
|
|
|
|
for (WarehouseTrayGoodsEntity trayGoodsEntity:sourceTrayGoodsList){ |
|
|
|
|
String orderPackageCode = trayGoodsEntity.getAssociationValue(); |
|
|
|
|
log.info("#################panduanPackageByService: 当前处理的包条 {}",orderPackageCode); |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListClient.findByPacketBarCode(orderPackageCode); |
|
|
|
|
if(Objects.isNull(parcelListEntity)){ |
|
|
|
|
log.info("#################panduanPackageByService: 包件信息不存在 {}",orderPackageCode); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String serviceNumber = parcelListEntity.getServiceNumber(); |
|
|
|
|
if(!serviceNumber.equals(filterValue)){ |
|
|
|
|
trayGoodsEntity.setIsFleeing("1"); |
|
|
|
|