|
|
|
@ -2501,7 +2501,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",loadscanEntity.getWarehouseId()==null?myCurrentWarehouse.getId():loadscanEntity.getWarehouseId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",loadscanEntity.getWarehouseName()==null?myCurrentWarehouse.getName():loadscanEntity.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",loadscanEntity.getWarehouseName()==null?myCurrentWarehouse.getName():loadscanEntity.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntity.getScanUser()); |
|
|
|
@ -3289,7 +3289,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
trunklinePackageTrackLog.put("createDept",distributionLoadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",distributionLoadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",distributionLoadscanEntity.getWarehouseId()==null?myCurrentWarehouse.getId():distributionLoadscanEntity.getWarehouseId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",distributionLoadscanEntity.getWarehouseName()==null?myCurrentWarehouse.getName():distributionLoadscanEntity.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",distributionLoadscanEntity.getWarehouseName()==null?myCurrentWarehouse.getName():distributionLoadscanEntity.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
trunklinePackageTrackLog.put("operator",distributionLoadscanEntity.getScanUser()); |
|
|
|
@ -5117,6 +5117,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
String signingTime = simpleDateFormat.format(new Date()); |
|
|
|
|
List<Long> packageIds = new ArrayList<>(); |
|
|
|
|
List<String> packageCodes = new ArrayList<>(); |
|
|
|
|
List<JSONObject> aaa = new ArrayList<>(); |
|
|
|
|
if (Func.isNotEmpty(parcelListEntityList)) { |
|
|
|
|
loadingPackageNum += parcelListEntityList.stream().mapToInt(DistributionParcelListEntity::getQuantity).sum(); |
|
|
|
|
signingPackageNum += parcelListEntityList.stream().mapToInt(DistributionParcelListEntity::getQuantity).sum(); |
|
|
|
@ -5129,7 +5130,10 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
.ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue())); |
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.yizhuangche.getValue()); |
|
|
|
|
parcelListEntity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
String content = ""; |
|
|
|
|
JSONObject trunklinePackageTrackLog= new JSONObject(); |
|
|
|
|
if (Func.isEmpty(loadscanEntities)) { |
|
|
|
|
|
|
|
|
|
//没有进行过装车操作
|
|
|
|
|
DistributionLoadscanEntity loadscanEntity = new DistributionLoadscanEntity(); |
|
|
|
|
loadscanEntity.setPackageId(parcelListEntity.getId()); |
|
|
|
@ -5183,7 +5187,19 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
jsonObject.put("num",1); |
|
|
|
|
jsonObject.put("remark","批量签收下架"); |
|
|
|
|
jsonObjects.add(jsonObject); |
|
|
|
|
|
|
|
|
|
content = "包件在"+myCurrentWarehouse.getName()+"由"+loadscanEntity.getSigningUser()+"司机一键签收,装车方式:扫描装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",loadscanEntity.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",loadscanEntity.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",loadscanEntity.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",loadscanEntities.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",loadscanEntity.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",loadscanEntity.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",loadscanEntity.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntity.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntity.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",loadscanEntity.getWarehouseId()==null?myCurrentWarehouse.getId():loadscanEntities.getWarehouseId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",loadscanEntity.getWarehouseName()==null?myCurrentWarehouse.getName():loadscanEntities.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntity.getScanUser()); |
|
|
|
|
} else { |
|
|
|
|
//存在装车数据
|
|
|
|
|
if (distributionSignfor.getIsClerk()) { |
|
|
|
@ -5203,8 +5219,26 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
loadscanEntities.setSigningTime(signingTime); |
|
|
|
|
distributionLoadscanService.updateById(loadscanEntities); |
|
|
|
|
packageLockIds.add(loadscanEntities.getPackageId()); |
|
|
|
|
content = "包件在"+myCurrentWarehouse.getName()+"由"+loadscanEntities.getSigningUser()+"司机一键签收,装车方式:补录装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
|
trunklinePackageTrackLog.put("tenantId",loadscanEntities.getTenantId()); |
|
|
|
|
trunklinePackageTrackLog.put("createTime",loadscanEntities.getCreateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("createUser",loadscanEntities.getCreateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateUser",loadscanEntities.getUpdateUser()); |
|
|
|
|
trunklinePackageTrackLog.put("updateTime",loadscanEntities.getUpdateTime()); |
|
|
|
|
trunklinePackageTrackLog.put("isDeleted",loadscanEntities.getIsDeleted()); |
|
|
|
|
trunklinePackageTrackLog.put("status",loadscanEntities.getStatus()); |
|
|
|
|
trunklinePackageTrackLog.put("createDept",loadscanEntities.getCreateDept()); |
|
|
|
|
trunklinePackageTrackLog.put("orderPackageCode",loadscanEntities.getOrderPackageCode()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseId",loadscanEntities.getWarehouseId()==null?myCurrentWarehouse.getId():loadscanEntities.getWarehouseId()); |
|
|
|
|
trunklinePackageTrackLog.put("warehouseName",loadscanEntities.getWarehouseName()==null?myCurrentWarehouse.getName():loadscanEntities.getWarehouseName()); |
|
|
|
|
trunklinePackageTrackLog.put("operator",loadscanEntities.getScanUser()); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
trunklinePackageTrackLog.put("workNode", WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
trunklinePackageTrackLog.put("content",content); |
|
|
|
|
aaa.add(trunklinePackageTrackLog); |
|
|
|
|
// distributionAsyncService.sendFactory(parcelListEntity, simpleDateFormat.format(new Date()), reservationEntity.getId(), reservationEntity.getReservationCode(), myCurrentWarehouse.getName(), user.getNickName());
|
|
|
|
|
packageIds.add(parcelListEntity.getId()); |
|
|
|
|
orderCodes.add(parcelListEntity.getOrderCode()); |
|
|
|
@ -5230,6 +5264,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
map.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
|
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(map); |
|
|
|
|
trunklinePackageTrackLogClient.addPackageTrackLog(aaa,packageCodes,WorkNodeEnums.DISTRIBUTION_SIGN_FOR.getCode()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//批量维护订单信息
|
|
|
|
|