@ -13,7 +13,7 @@ public final class OutboundQuery {
@@ -13,7 +13,7 @@ public final class OutboundQuery {
private final Instant after ;
private final Instant before ;
private final List < String > statuses ;
private final String providerOrderId ;
private final String outboundRequestNo ;
private final String orderRef ;
private final int pageSize ;
private final String cursor ;
@ -25,7 +25,7 @@ public final class OutboundQuery {
@@ -25,7 +25,7 @@ public final class OutboundQuery {
this . after = b . after ;
this . before = b . before ;
this . statuses = Collections . unmodifiableList ( new ArrayList < String > ( b . statuses ) ) ;
this . providerOrderId = b . providerOrderId ;
this . outboundRequestNo = b . outboundRequestNo ;
this . orderRef = b . orderRef ;
this . pageSize = b . pageSize ;
this . cursor = b . cursor ;
@ -50,9 +50,15 @@ public final class OutboundQuery {
@@ -50,9 +50,15 @@ public final class OutboundQuery {
return statuses ;
}
/** 按仓出库单号精确查。 */
public String providerOrderId ( ) {
return providerOrderId ;
/ * *
* 按 < b > 来源单号 < / b > ( 我们下发的 { @code outboundRequestNo } ) 精确查 。
*
* < p > 原名 { @code providerOrderId } 有误导 : 它装的从来不是仓内部 id 。
* 运去哪创建订单 ( API 123 ) 返回的 { @code orderId } 是内部数字 id ,
* 只能用于列表 / 关联 ; 详情查询 ( API 128 ) 只认来源单号 。 < / p >
* /
public String outboundRequestNo ( ) {
return outboundRequestNo ;
}
/ * *
@ -80,7 +86,7 @@ public final class OutboundQuery {
@@ -80,7 +86,7 @@ public final class OutboundQuery {
. after ( after )
. before ( before )
. statuses ( statuses )
. providerOrderId ( providerOrderId )
. outboundRequestNo ( outboundRequestNo )
. orderRef ( orderRef )
. pageSize ( pageSize )
. cursor ( cursor ) ;
@ -91,7 +97,7 @@ public final class OutboundQuery {
@@ -91,7 +97,7 @@ public final class OutboundQuery {
private Instant after ;
private Instant before ;
private final List < String > statuses = new ArrayList < String > ( ) ;
private String providerOrderId ;
private String outboundRequestNo ;
private String orderRef ;
private int pageSize = 100 ;
private String cursor ;
@ -120,8 +126,8 @@ public final class OutboundQuery {
@@ -120,8 +126,8 @@ public final class OutboundQuery {
return this ;
}
public Builder providerOrderId ( String providerOrderId ) {
this . providerOrderId = providerOrderId ;
public Builder outboundRequestNo ( String outboundRequestNo ) {
this . outboundRequestNo = outboundRequestNo ;
return this ;
}