【功能修复】快递鸟顺丰查询需要CustomerName

This commit is contained in:
卢越 2024-08-22 14:47:32 +08:00
parent 9b2ec3d341
commit 96bffc4199
3 changed files with 12 additions and 1 deletions

View File

@ -28,4 +28,9 @@ public class ExpressTrackQueryReqDTO {
*/
private String phone;
/**
* 自定义名称顺丰专用
*/
private String customerName;
}

View File

@ -29,4 +29,10 @@ public class KdNiaoExpressQueryReqDTO {
@JsonProperty("OrderCode")
private String orderNo;
/**
* 自定义名称顺丰专用
*/
@JsonProperty("CustomerName")
private String customerName;
}

View File

@ -219,7 +219,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
public List<ExpressTrackRespDTO> getExpressTrackList(String code, String logisticsNo, String receiverMobile) {
return expressClientFactory.getDefaultExpressClient().getExpressTrackList(
new ExpressTrackQueryReqDTO().setExpressCode(code).setLogisticsNo(logisticsNo)
.setPhone(receiverMobile));
.setPhone(receiverMobile).setCustomerName(StrUtil.subSuf(receiverMobile, receiverMobile.length() - 4)));
}
// =================== Order Item ===================