|
|
|
@ -908,7 +908,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
Integer isStrictLoading = 0; |
|
|
|
|
WarehouseConfigEntity warehouseConfig = warehouseConfigClient.getWarehouseConfig(myCurrentWarehouse.getId()); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig != null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
String[] split = distrilbutionloadingscanDTO.getBarcodes().split(","); |
|
|
|
@ -1407,7 +1407,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
Integer isStrictLoading = 0; |
|
|
|
|
WarehouseConfigEntity warehouseConfig = warehouseConfigClient.getWarehouseConfig(myCurrentWarehouse.getId()); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig != null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
//查询订单
|
|
|
|
@ -3209,7 +3209,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
// }
|
|
|
|
|
Integer isStrictLoading = 0; |
|
|
|
|
WarehouseConfigEntity warehouseConfig = warehouseConfigClient.getWarehouseConfig(myCurrentWarehouse.getId()); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig != null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3447,7 +3447,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
return R.data(orderpackages, "签收成功"); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
LogError logError = new LogError(); |
|
|
|
|
logError.setMessage(e.getMessage()); |
|
|
|
|
logClient.saveErrorLog(logError); |
|
|
|
@ -5373,13 +5373,13 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
.eq(DistributionSignforEntity::getDeliveryId, distributionSignfor.getDeliveryId()) |
|
|
|
|
.eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) |
|
|
|
|
); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig != null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
Boolean driver = distributionDeliveryListService.judgeIsDriver(user); |
|
|
|
|
DistributionDeliverySelfEntity deliverySelfEntity = this.getDriver(distributionDeliveryListEntity, user, driver); |
|
|
|
|
|
|
|
|
|
if (distributionDeliveryListEntity.getKind() == "1") { |
|
|
|
|
if (Objects.equals(distributionDeliveryListEntity.getKind(), "1")) { |
|
|
|
|
if (!driver) { |
|
|
|
|
return Resp.scanFail("操作失败", "当前操作由司机操作"); |
|
|
|
|
} |
|
|
|
@ -6029,7 +6029,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
for (DistributionLoadscanEntity distributionParcelListEntity : distributionLoadscanEntityLists) { |
|
|
|
|
PackageData packageData = new PackageData(); |
|
|
|
|
if (1 == distributionParcelListEntity.getIsZero()) { |
|
|
|
|
if ( distributionParcelListEntity.getIsZero()!=null && 1 == distributionParcelListEntity.getIsZero()) { |
|
|
|
|
// 零担
|
|
|
|
|
packageData.setPackageType(PackageTypeEnums.LTL); |
|
|
|
|
packageData.setNumber(distributionLoadscanEntity.getReceivedQuantity()); |
|
|
|
@ -6072,6 +6072,9 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
distributionLoadVO.setPackageDataList(data); |
|
|
|
|
nodeFanoutMsg.setMain(distributionLoadVO); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setTenantId(AuthUtil.getTenantId()); |
|
|
|
|
|
|
|
|
|
return nodeFanoutMsg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -6402,7 +6405,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
.eq(DistributionLoadscanEntity::getOrderPackageCode, distributionLoadscanAbnormalEntity.getPackageCode()) |
|
|
|
|
.ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue()) |
|
|
|
|
); |
|
|
|
|
extractedBuildNewPackage(reservationEntity, distributionLoadscanAbnormalEntity,myCurrentWarehouse); |
|
|
|
|
extractedBuildNewPackage(reservationEntity, distributionLoadscanAbnormalEntity, myCurrentWarehouse); |
|
|
|
|
loadscanEntity.setIsAbnormalLoading(1); |
|
|
|
|
if (loadscanEntity.getSignforState().equals(LoadScanSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
//已经进行签收了 这里就需要将异常签收的状态变更为正常
|
|
|
|
@ -6454,7 +6457,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
distributionLoadscanService.updateById(loadscanEntity); |
|
|
|
|
//构建新包件信息
|
|
|
|
|
extractedBuildNewPackage(reservationEntity, a,myCurrentWarehouse); |
|
|
|
|
extractedBuildNewPackage(reservationEntity, a, myCurrentWarehouse); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
return R.fail(3000, "无需审批"); |
|
|
|
@ -6479,7 +6482,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
return R.success("操作成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void extractedBuildNewPackage(DistributionReservationEntity reservationEntity, DistributionLoadscanAbnormalEntity distributionLoadscanAbnormalEntity,BasicdataWarehouseEntity warehouse) { |
|
|
|
|
private void extractedBuildNewPackage(DistributionReservationEntity reservationEntity, DistributionLoadscanAbnormalEntity distributionLoadscanAbnormalEntity, BasicdataWarehouseEntity warehouse) { |
|
|
|
|
DistributionReservationPackageEntity reservationPackageEntity = getDistributionReservationPackageEntity(reservationEntity, distributionLoadscanAbnormalEntity); |
|
|
|
|
distributionReservationPackageService.save(reservationPackageEntity); |
|
|
|
|
//维护包件的预约状态
|
|
|
|
@ -7722,7 +7725,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
String now = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date()); |
|
|
|
|
Integer isStrictLoading = 0; |
|
|
|
|
WarehouseConfigEntity warehouseConfig = warehouseConfigClient.getWarehouseConfig(myCurrentWarehouse.getId()); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig!=null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
Long deliveryId = distrilbutionloadingscanDTO.getDeliveryId(); |
|
|
|
@ -7970,8 +7973,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
int a = 0; |
|
|
|
|
outboundQuantity = outboundQuantity - distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
signinQuantity = signinQuantity - distributionLoadscanEntity.getReceivedQuantity(); |
|
|
|
|
handQuantity += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity+=distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
handQuantity += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
if (distributionLoadscanEntity.getLoadedNub() < parcelNumberDTO.getSigningNum()) { |
|
|
|
|
if (Integer.parseInt(IsOrNoConstant.yes.getValue()) == isStrictLoading) { |
|
|
|
|
return Resp.scanFail("装车数量少于签收数,无法签收", "装车数量少于签收数,无法签收"); |
|
|
|
@ -7992,10 +7995,10 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionLoadscanEntity.setSigningTime(now); |
|
|
|
|
distributionLoadscanEntity.setSigningUser(user.getNickName()); |
|
|
|
|
//进行签收数量的统计
|
|
|
|
|
outboundQuantity += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
signinQuantity += distributionLoadscanEntity.getReceivedQuantity(); |
|
|
|
|
handQuantity = handQuantity - distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity = deliveryQuantity - distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
outboundQuantity += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
signinQuantity += distributionLoadscanEntity.getReceivedQuantity(); |
|
|
|
|
handQuantity = handQuantity - distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity = deliveryQuantity - distributionLoadscanEntity.getLoadedNub(); |
|
|
|
|
distributionLoadscanService.updateById(distributionLoadscanEntity); |
|
|
|
|
pushList.add(distributionLoadscanEntity); |
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
@ -8057,8 +8060,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
loadscanEntity.setOneQclick(2); |
|
|
|
|
loadscanEntity.setSigningTime(now); |
|
|
|
|
outboundQuantity += loadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity = deliveryQuantity - loadscanEntity.getLoadedNub() ; |
|
|
|
|
signinQuantity += loadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity = deliveryQuantity - loadscanEntity.getLoadedNub(); |
|
|
|
|
signinQuantity += loadscanEntity.getLoadedNub(); |
|
|
|
|
handQuantity = handQuantity - loadscanEntity.getLoadedNub(); |
|
|
|
|
deliveryQuantity = deliveryQuantity - loadscanEntity.getLoadedNub(); |
|
|
|
|
//将装车和签收进行统一数量
|
|
|
|
@ -8793,7 +8796,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
Integer isStrictLoading = 0; |
|
|
|
|
WarehouseConfigEntity warehouseConfig = warehouseConfigClient.getWarehouseConfig(warehouse.getId()); |
|
|
|
|
if (!Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
if (warehouseConfig != null && !Objects.isNull(warehouseConfig.getIsStrictLoading())) { |
|
|
|
|
isStrictLoading = warehouseConfig.getIsStrictLoading(); |
|
|
|
|
} |
|
|
|
|
//查询签收数据
|
|
|
|
|