Commit 0bb9822f authored by shiyu's avatar shiyu

物流轨迹查询3

parent 5ad3e1b0
...@@ -17,5 +17,18 @@ public class LogisticsInfo implements Entity { ...@@ -17,5 +17,18 @@ public class LogisticsInfo implements Entity {
private String stateName; private String stateName;
/**
* 物流信息
*/
private List<TrailInfo> trailInfoList; private List<TrailInfo> trailInfoList;
/**
* 收货信息
*/
private String receiverInfo;
/**
* 订单号
*/
private String distributionOrderId;
} }
...@@ -47,7 +47,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer { ...@@ -47,7 +47,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/supplierItem/findItemsOfCurrentDistributor", "/wx/selfPage/updateSwitch", "/wx/supplierItem/findHomePage" "/wx/supplierItem/findItemsOfCurrentDistributor", "/wx/selfPage/updateSwitch", "/wx/supplierItem/findHomePage"
//下列路径上线注释 //下列路径上线注释
/* , "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**", /*, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
"/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**" "/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**"
,"/wx/logistics/**" ,"/wx/logistics/**"
*/ */
......
package com.wwdz.ch.wx.impl.distribution; package com.wwdz.ch.wx.impl.distribution;
import com.wwdz.ch.core.entity.LogisticsInfo;
import com.wwdz.ch.core.entity.LogisticsRequestDto; import com.wwdz.ch.core.entity.LogisticsRequestDto;
import com.wwdz.ch.core.type.Result; import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dao.distribution.DistributionOrderDao; import com.wwdz.ch.db.dao.distribution.DistributionOrderDao;
...@@ -32,7 +33,16 @@ public class LogisticsServiceImpl implements LogisticsService { ...@@ -32,7 +33,16 @@ public class LogisticsServiceImpl implements LogisticsService {
LogisticsRequestDto logisticsRequestDto = new LogisticsRequestDto(); LogisticsRequestDto logisticsRequestDto = new LogisticsRequestDto();
logisticsRequestDto.setLogisticsCode(distributionOrder.getLogisticsCode()); logisticsRequestDto.setLogisticsCode(distributionOrder.getLogisticsCode());
logisticsRequestDto.setWaybill(distributionOrder.getWaybill()); logisticsRequestDto.setWaybill(distributionOrder.getWaybill());
return logisticsApi.findTrails(logisticsRequestDto); Result result = logisticsApi.findTrails(logisticsRequestDto);
if (result.getSuccess()) {
LogisticsInfo logisticsInfo = (LogisticsInfo) result.getData();
String receiverInfo = distributionOrder.getReceiverName() + "," + distributionOrder.getReceiverPhone() + "," + distributionOrder.getReceiverAddress();
logisticsInfo.setReceiverInfo(receiverInfo);
logisticsInfo.setDistributionOrderId(orderId);
result.setData(logisticsInfo);
return result;
}
return result;
} else { } else {
return Result.failed("承运商信息为空"); return Result.failed("承运商信息为空");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment