@ -3924,10 +3924,10 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
Integer integer = this . selectBillLadingPlanNum ( Long . parseLong ( s ) ) ;
if ( Func . isNotEmpty ( ladingScanEntities ) ) {
int sum = ladingScanEntities . stream ( ) . filter ( f - > "2" . equals ( f . getMaterialType ( ) ) ) . mapToInt ( DistributionBillLadingScanEntity : : getQuantity ) . sum ( ) ;
if ( integer ! = sum ) {
//存在资源释放操作
releaseBillLadingResource ( Long . parseLong ( s ) , myCurrentWarehouse , distrilbutionBillLadingEntity . getPickupBatch ( ) ) ;
}
// if (integer != sum) {
// //存在资源释放操作
// releaseBillLadingResource(Long.parseLong(s), myCurrentWarehouse, distrilbutionBillLadingEntity.getPickupBatch());
// }
try {
if ( sum > 0 ) {
parcelListIds . addAll ( ladingScanEntities . stream ( ) . map ( DistributionBillLadingScanEntity : : getParcelListId ) . collect ( Collectors . toSet ( ) ) ) ;
@ -4043,7 +4043,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
NodeFanoutMsg < PickUpByReCheckVO > nodeFanoutMsg = buildPickUpByReCheckVO ( billLadingEntity , ladingScanEntities , myCurrentWarehouse ) ;
iDistributionNodeWorkService . billofladingSignforCheck ( nodeFanoutMsg , AuthUtil . getUser ( ) ) ;
//推送该自提单的包件运单信息
}
// 回传工厂数据
// sendFactory(myCurrentWarehouse, parcelListIds);
@ -4051,6 +4051,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
return R . success ( "操作成功" ) ;
}
private void handleDExamineDistributionPlanLog ( DistrilbutionBillLadingEntity billLadingEntity , BladeUser user , BasicdataWarehouseEntity myCurrentWarehouse , Integer num ) {
String planContent = user . getNickName ( ) + "在" + myCurrentWarehouse . getName ( )
+ "完成自提计划;自提计划编号:" + billLadingEntity . getPickupBatch ( )
@ -4117,12 +4118,13 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
}
} else {
recoveryReservationZeroPackageEntities . addAll ( reservationZeroPackageEntities ) ;
reservationZeroPackageEntities . stream ( ) . forEach ( rz - > {
rz . setZeroPackageStatus ( ReservationPackageStatusConstant . quxiao . getValue ( ) ) ;
rz . setQuantity ( 0 ) ;
} ) ;
//进行整个品类释放
updateReservationZeroPackageEntities . addAll ( reservationZeroPackageEntities ) ;
for ( DistributionReservationZeroPackageEntity reservationZeroPackageEntity : reservationZeroPackageEntities ) {
DistributionReservationZeroPackageEntity cancelEntity = new DistributionReservationZeroPackageEntity ( ) ;
cancelEntity . setId ( reservationZeroPackageEntity . getId ( ) ) ;
cancelEntity . setQuantity ( 0 ) ;
cancelEntity . setZeroPackageStatus ( ReservationPackageStatusConstant . quxiao . getValue ( ) ) ;
updateReservationZeroPackageEntities . add ( cancelEntity ) ;
}
}
} else {
return 0 ;
@ -4133,7 +4135,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
DistributionParcelNumberEntity distributionParcelNumberEntity = distributionParcelNumberService . getOne ( Wrappers . < DistributionParcelNumberEntity > query ( ) . lambda ( )
. eq ( DistributionParcelNumberEntity : : getParcelListId , recoveryReservationZeroPackageEntity . getParcelListId ( ) )
) ;
distributionParcelNumberEntity . setDeliveryQuantity ( distributionParcelNumberEntity . getDeliveryQuantity ( ) - recoveryReservationZeroPackageEntity . getQuantity ( ) ) ;
int i = distributionParcelNumberEntity . getDeliveryQuantity ( ) - recoveryReservationZeroPackageEntity . getQuantity ( ) ;
distributionParcelNumberEntity . setDeliveryQuantity ( i ) ;
distributionParcelNumberService . updateById ( distributionParcelNumberEntity ) ;
distributionParcelListService . maintenanceZerpPackageInfo ( recoveryReservationZeroPackageEntity . getParcelListId ( ) ) ;
}