| | |
| | | import com.xiaopeng.api.feignClient.automaticPilot.XPUClient; |
| | | import com.xiaopeng.api.vo.automaticPilot.MqttPublishVo; |
| | | import com.xiaopeng.api.vo.automaticPilot.protobuf.*; |
| | | import com.xiaopeng.common.core.exception.ServiceException; |
| | | import com.xiaopeng.common.core.utils.StringUtils; |
| | | import com.xiaopeng.common.core.utils.uuid.UUID; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | log.info("getMqttPublishTopic vin,{},xpuIdMapping,{}", vin, JSON.toJSONString(xpuIdMapping)); |
| | | if (xpuIdMapping == null || StringUtils.isEmpty(xpuIdMapping.get(XPU_ID_TYPE)) ) { |
| | | log.error("根据vin查询车辆xpuid信息为空,vin={}", vin); |
| | | throw new RuntimeException("根据vin查询车辆xpuid信息为空"); |
| | | throw new ServiceException("根据vin查询车辆xpuid信息为空"); |
| | | } |
| | | return xpuIdMapping.get(XPU_ID_TYPE); |
| | | } |