diff --git a/platformapi/jdeclpapi/jdeclpapi.go b/platformapi/jdeclpapi/jdeclpapi.go index ef57f802..6af9ac1d 100644 --- a/platformapi/jdeclpapi/jdeclpapi.go +++ b/platformapi/jdeclpapi/jdeclpapi.go @@ -400,6 +400,7 @@ func (a *API) QueryStock(goodsNo string) (queryStockResult []*QueryStockResult, "warehouseNo": WarehouseNo, "returnZeroStock": 2, //表示返回库存为0的数据 "stockType": 1, + "stockStatus": 1, //良品 } if goodsNo != "" { params["goodsNo"] = goodsNo diff --git a/platformapi/jdeclpapi/jdeclpapi_test.go b/platformapi/jdeclpapi/jdeclpapi_test.go index f28e08f4..3b6815f6 100644 --- a/platformapi/jdeclpapi/jdeclpapi_test.go +++ b/platformapi/jdeclpapi/jdeclpapi_test.go @@ -86,7 +86,7 @@ func TestSearchShopStock(t *testing.T) { } func TestQueryStock(t *testing.T) { - result, err := api.QueryStock("EMG4418113943423") + result, err := api.QueryStock("") if err != nil { t.Fatal(err) } @@ -94,7 +94,7 @@ func TestQueryStock(t *testing.T) { } func TestWaybillReceive(t *testing.T) { - err := api.WaybillReceive(&WaybillReceiveParam{ + _, err := api.WaybillReceive(&WaybillReceiveParam{ SalePlat: SalePlatSourceDelivery, CustomerCode: CustomerCode, OrderID: "883289609977992", diff --git a/platformapi/mtwmapi/retail_test.go b/platformapi/mtwmapi/retail_test.go index 2e8ad882..c3f5a280 100644 --- a/platformapi/mtwmapi/retail_test.go +++ b/platformapi/mtwmapi/retail_test.go @@ -56,7 +56,7 @@ func TestRetailList(t *testing.T) { } func TestRetailListAll(t *testing.T) { - result, err := api.RetailListAll(testPoiCode) + result, err := api.RetailListAll("9325917") if err != nil { t.Fatal(err) }