@ -6764,17 +6764,17 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
DistributionDeliveryListEntity deliveryListEntity = this . getById ( deliveryId ) ;
DistributionDeliveryListEntity deliveryListEntity = this . getById ( deliveryId ) ;
if ( Func . isEmpty ( deliveryListEntity ) ) {
if ( Func . isEmpty ( deliveryListEntity ) ) {
log . info ( method + "参数缺失deliveryId:{}" , deliveryId ) ;
log . info ( method + "参数缺失deliveryId:{}" , deliveryId ) ;
throw new RuntimeException ( "服务器正忙!!!" ) ;
return R . fail ( "服务器正忙!!!" ) ;
}
}
List < DistributionReservationEntity > reservationEntities = distributionSignforService . selectReservationByDeliveryId ( deliveryId ) ;
List < DistributionReservationEntity > reservationEntities = distributionSignforService . selectReservationByDeliveryId ( deliveryId ) ;
if ( Func . isEmpty ( reservationEntities ) ) {
if ( Func . isEmpty ( reservationEntities ) ) {
log . info ( method + "预约查询失败:{}" , deliveryId ) ;
log . info ( method + "预约查询失败:{}" , deliveryId ) ;
throw new RuntimeException ( "服务器正忙!!!" ) ;
return R . fail ( "服务器正忙!!!" ) ;
}
}
String reservationCodes = reservationEntities . stream ( ) . filter ( f - > ! f . getLoadingStatus ( ) . equals ( ReservationLoadingStatusConstant . daizhuangche . getValue ( ) ) ) . map ( DistributionReservationEntity : : getReservationCode ) . collect ( Collectors . joining ( "," ) ) ;
String reservationCodes = reservationEntities . stream ( ) . filter ( f - > ! f . getLoadingStatus ( ) . equals ( ReservationLoadingStatusConstant . daizhuangche . getValue ( ) ) ) . map ( DistributionReservationEntity : : getReservationCode ) . collect ( Collectors . joining ( "," ) ) ;
if ( Func . isNotEmpty ( reservationCodes ) ) {
if ( Func . isNotEmpty ( reservationCodes ) ) {
log . info ( method + "存在装车数据:{}" , deliveryId ) ;
log . info ( method + "存在装车数据:{}" , reservationCodes ) ;
return R . fail ( reservationCodes + "存在装车数据 !!!" ) ;
return R . fail ( reservationCodes + "存在装车包件 !!!" ) ;
}
}
//该配送是否存在异常装车或者异常签收数据
//该配送是否存在异常装车或者异常签收数据
List < DistributionLoadscanEntity > loadscanEntityList = distributionDeliveryListService . selectAbnormalLoadingBydeliveryId ( deliveryId ) ;
List < DistributionLoadscanEntity > loadscanEntityList = distributionDeliveryListService . selectAbnormalLoadingBydeliveryId ( deliveryId ) ;