|
|
@ -5336,11 +5336,15 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
return R.fail("当前托盘无此客户的货物"); |
|
|
|
return R.fail("当前托盘无此客户的货物"); |
|
|
|
} |
|
|
|
} |
|
|
|
warehouseUpdownTypeClient.downTray(trayByTrayCode.getPalletCode(),myCurrentWarehouse.getId()); |
|
|
|
warehouseUpdownTypeClient.downTray(trayByTrayCode.getPalletCode(),myCurrentWarehouse.getId()); |
|
|
|
|
|
|
|
List<JSONObject> logList = new ArrayList<>(); |
|
|
|
//生成扫描数据
|
|
|
|
//生成扫描数据
|
|
|
|
List<DistributionStockEntity> stockEntityList = generateBillTrayPackageStockEntity(billLadingEntity,packageData,myCurrentWarehouse,user,stockupDTO.getStockupId()); |
|
|
|
List<DistributionStockEntity> stockEntityList = generateBillTrayPackageStockEntity(billLadingEntity,packageData,myCurrentWarehouse,user,stockupDTO.getStockupId(),stockupEntity,logList); |
|
|
|
if (!stockEntityList.isEmpty()) { |
|
|
|
if (!stockEntityList.isEmpty()) { |
|
|
|
distributionStockService.saveBatch(stockEntityList); |
|
|
|
distributionStockService.saveBatch(stockEntityList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!logList.isEmpty()) { |
|
|
|
|
|
|
|
trunklinePackageTrackLogClient.addPackageTrackLog(logList); |
|
|
|
|
|
|
|
} |
|
|
|
return Resp.scanSuccess("操作成功"," "); |
|
|
|
return Resp.scanSuccess("操作成功"," "); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -5348,7 +5352,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
List<DistributionParcelListEntity> packageData, |
|
|
|
List<DistributionParcelListEntity> packageData, |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse, |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse, |
|
|
|
BladeUser user, |
|
|
|
BladeUser user, |
|
|
|
Long stockupId) { |
|
|
|
Long stockupId, |
|
|
|
|
|
|
|
DistributionStockupEntity stockupEntity, |
|
|
|
|
|
|
|
List<JSONObject> logList) { |
|
|
|
List<DistributionStockEntity> list= new ArrayList<>(); |
|
|
|
List<DistributionStockEntity> list= new ArrayList<>(); |
|
|
|
for (DistributionParcelListEntity parcelListEntity : packageData) { |
|
|
|
for (DistributionParcelListEntity parcelListEntity : packageData) { |
|
|
|
DistributionStockEntity distributionStockEntity = new DistributionStockEntity(); |
|
|
|
DistributionStockEntity distributionStockEntity = new DistributionStockEntity(); |
|
|
@ -5370,6 +5376,10 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
distributionStockEntity.setScanUser(user.getNickName()); |
|
|
|
distributionStockEntity.setScanUser(user.getNickName()); |
|
|
|
distributionStockEntity.setIsTray(Integer.parseInt(IsOrNoConstant.yes.getValue())); |
|
|
|
distributionStockEntity.setIsTray(Integer.parseInt(IsOrNoConstant.yes.getValue())); |
|
|
|
list.add(distributionStockEntity); |
|
|
|
list.add(distributionStockEntity); |
|
|
|
|
|
|
|
//增加备货扫描节点
|
|
|
|
|
|
|
|
String content = "包件在" + myCurrentWarehouse.getName() + "由" + AuthUtil.getNickName() + "按托盘备货作业,备货任务号:" + stockupEntity.getStockupCode(); |
|
|
|
|
|
|
|
JSONObject js = handleLogJSONObject(myCurrentWarehouse, user, distributionStockEntity.getCoding(), content, WorkNodeEnums.STOCKING_OPERATION.getCode()); |
|
|
|
|
|
|
|
logList.add(js); |
|
|
|
} |
|
|
|
} |
|
|
|
return list; |
|
|
|
return list; |
|
|
|
} |
|
|
|
} |
|
|
|