|
@@ -60,7 +60,12 @@ public class LogisticsTask {
|
|
|
ResponseJson<QueryTrackResp> result = logisticsService.getLogisticsByNumber(logistics.getNu(), logistics.getLogisticsCompanyCode(), "");
|
|
|
if (result.getCode() == -2) {
|
|
|
// 顺丰速运需要提供收/寄件人的电话号码查询
|
|
|
- String mobile = baseMapper.getLogisticsPhoneByOrderId(logistics.getOrderId());
|
|
|
+ String mobile;
|
|
|
+ if (null != logistics.getOrderId()) {
|
|
|
+ mobile = baseMapper.getLogisticsPhoneByOrderId(logistics.getOrderId());
|
|
|
+ }else {
|
|
|
+ mobile = logistics.getMobile();
|
|
|
+ }
|
|
|
if (StringUtils.isNotEmpty(mobile)) {
|
|
|
result = logisticsService.getLogisticsByNumber(logistics.getNu(), logistics.getLogisticsCompanyCode(), mobile);
|
|
|
}
|