Browse Source

fix:增加车牌的判断

visual
pref_mail@163.com 3 months ago
parent
commit
350843e1dd
  1. 45
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

45
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -3050,13 +3050,16 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionLoadVO.setVehicleId(distributionLoadscanEntity.getVehicleId());
distributionLoadVO.setTrainNumber(distributionDeliveryListEntity.getTrainNumber());
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
if(StringUtil.isNotBlank(distributionLoadscanEntity.getVehicleName())){
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
}
}
DistributionReservationEntity byId = distributionReservationService.getById(distributionLoadscanEntity.getReservationId());
if (!Func.isEmpty(byId)) {
distributionLoadVO.setReservationCode(byId.getReservationCode());
@ -3119,17 +3122,17 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionLoadVO.setVehicleName(distributionLoadscanEntity.getVehicleName());
distributionLoadVO.setVehicleId(distributionLoadscanEntity.getVehicleId());
//获取装车表的车辆
if(StringUtil.isBlank(distributionLoadscanEntity.getVehicleName())){
return null;
}
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
if(StringUtil.isNotBlank(distributionLoadscanEntity.getVehicleName())){
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
}
}
distributionLoadVO.setReservationCode(distributionReservationEntity.getReservationCode());
distributionLoadVO.setTrainNumber(distributionDeliveryListEntity.getTrainNumber());
distributionLoadVO.setReservationId(distributionReservationEntity.getId());
@ -6962,13 +6965,17 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionLoadVO.setReservationCode(byId.getReservationCode());
}
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
if(StringUtil.isNotBlank(distributionLoadscanEntity.getVehicleName())){
// 获取车辆类型
BasicCarModelEntity nc = iBasicCarModelClient.getCarModelByCarNumber(distributionLoadscanEntity.getVehicleName());
if (nc != null) {
distributionLoadVO.setCarType(nc.getVehicleModel());
distributionLoadVO.setCarTypeId(nc.getId());
}
}
nodeFanoutMsg.setMain(distributionLoadVO);
List<PackageData> data = new ArrayList<>();

Loading…
Cancel
Save