|
|
@ -1126,4 +1126,51 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param parcelListId |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void maintenanceZerpPackageInfo(Long parcelListId) { |
|
|
|
|
|
|
|
DistributionParcelNumberEntity distributionParcelNumberEntity = distributionParcelNumberService.getOne(Wrappers.<DistributionParcelNumberEntity>query().lambda() |
|
|
|
|
|
|
|
.eq(DistributionParcelNumberEntity::getParcelListId, parcelListId) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (Func.isNotEmpty(distributionParcelNumberEntity)){ |
|
|
|
|
|
|
|
DistributionParcelListEntity parcelListEntity = new DistributionParcelListEntity(); |
|
|
|
|
|
|
|
int totalQuantity = distributionParcelNumberEntity.getQuantity(); |
|
|
|
|
|
|
|
int handledQuantity = distributionParcelNumberEntity.getHandQuantity(); |
|
|
|
|
|
|
|
int deliveryQuantity = distributionParcelNumberEntity.getDeliveryQuantity(); |
|
|
|
|
|
|
|
int outboundQuantity = distributionParcelNumberEntity.getOutboundQuantity(); |
|
|
|
|
|
|
|
int signinQuantity = distributionParcelNumberEntity.getSigninQuantity(); |
|
|
|
|
|
|
|
if (totalQuantity > 0){ |
|
|
|
|
|
|
|
if (handledQuantity == totalQuantity){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
parcelListEntity.setId(parcelListId); |
|
|
|
|
|
|
|
if ((deliveryQuantity + outboundQuantity) == 0){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageReservationStatus(OrderPackageReservationStatusConstant.daiyuyue.getValue()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if ((deliveryQuantity + outboundQuantity) == totalQuantity){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageReservationStatus(OrderPackageReservationStatusConstant.yiyueyue.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (outboundQuantity == 0){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.weizhuancghe.getValue()); |
|
|
|
|
|
|
|
}else if (outboundQuantity == totalQuantity){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.yizhuangche.getValue()); |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageReservationStatus(OrderPackageStatusConstant.yichuku.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (signinQuantity == totalQuantity){ |
|
|
|
|
|
|
|
parcelListEntity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.updateById(parcelListEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|