|
|
|
@ -40,6 +40,7 @@ import org.springblade.common.constant.loading.LoadingStatusConstant;
|
|
|
|
|
import org.springblade.common.constant.order.OrderStatusConstant; |
|
|
|
|
import org.springblade.common.constant.orderpackage.OrderPackageLoadingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.reservation.ReservationOrderStatusConstant; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.serviceConstant.ServiceConstant; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
@ -122,7 +123,7 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
DistributionLoadscanEntity loadscanEntity = distributionLoadscanService.getOne(Wrappers.<DistributionLoadscanEntity>query().lambda().eq(DistributionLoadscanEntity::getPackageId, p.getId()).eq(DistributionLoadscanEntity::getOrderPackageCode, p.getOrderPackageCode())); |
|
|
|
|
if (Func.isNotEmpty(loadscanEntity)) { |
|
|
|
|
try { |
|
|
|
|
p.setLoadingTime(sdf.parse(loadscanEntity.getScanTime())); |
|
|
|
|
p.setLoadingTime(loadscanEntity.getScanTime()); |
|
|
|
|
switch (loadscanEntity.getScanState().toString()) { |
|
|
|
|
case "1": |
|
|
|
|
p.setScanStatus(LoadingStatusConstant.quxiao.getName()); |
|
|
|
@ -146,8 +147,9 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
if (Func.isNotEmpty(loadscanEntity.getDriverName())) { |
|
|
|
|
p.setDriverName(loadscanEntity.getDriverName()); |
|
|
|
|
} |
|
|
|
|
} catch (ParseException e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error(">>> 系统异常",e); |
|
|
|
|
throw new CustomerException("系统异常,请联系管理员"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|