感谢您的反馈!
查询pr信息
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| pr_query_dto | PrQueryDTO | 可选 | pr查询入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ActionResult | null | 获取url的出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPrQueryRequest req = new AlibabaPrQueryRequest();
AlibabaPrQueryRequest.PrQueryDTO obj1 = new AlibabaPrQueryRequest.PrQueryDTO();
obj1.setNeedFile(true);
obj1.setStatusList("null");
obj1.setSourceTypeList("null");
obj1.setPrItemIdList(new Long[] { null };
);
obj1.setPrNumberList("null");
obj1.setExcludePrNumberList("null");
obj1.setPrIdList(new Long[] { null };
);
obj1.setSourceValueList("null");
obj1.setNeedFinanceDistribution(true);
obj1.setNeedItem(true);
obj1.setRequestor("110711");
obj1.setApplicant("1");
obj1.setNeedSurplusAmount(true);
obj1.setNeedCustomInfo(true);
req.setPrQueryDto(obj1);
AlibabaPrQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_pr_query_response>
<result>
<success>true</success>
<error_code>500</error_code>
<contents>
<pr_top_response_d_t_o>
<applicant>知示</applicant>
<requestor>早霞</requestor>
<pr_number>PR200293</pr_number>
<security_id>123werwr2</security_id>
<id>fsdsf234</id>
<company_code>487</company_code>
<source_type>2</source_type>
<source_value>3</source_value>
<status>成功</status>
<purchase_org_id>19976</purchase_org_id>
<currency_code>1390</currency_code>
<simplified_process>true</simplified_process>
<need_approval>true</need_approval>
<amount>100000</amount>
<submit_date>2020-01-22 02:22:11</submit_date>
<edit_url>https://baidu.com</edit_url>
<detail_url>https://baidu.com</detail_url>
<associated_existing_pr>PR10092</associated_existing_pr>
<tenant_id>10001</tenant_id>
<purchase_type>1</purchase_type>
<ext>null</ext>
<pr_items>
<pr_item_top_response_d_t_o>
<id>23423</id>
<source_type>null</source_type>
<source_value>null</source_value>
<item_type>null</item_type>
<item_code>null</item_code>
<item_name>null</item_name>
<item_description>null</item_description>
<category_code>null</category_code>
<category_use>null</category_use>
<acceptance_standard>null</acceptance_standard>
<uom>null</uom>
<unit_price>2.00</unit_price>
<quantity>300</quantity>
<quantity_decimal>null</quantity_decimal>
<amount>200000</amount>
<currency_code>null</currency_code>
<need_date_start>2020-01-22 02:22:11</need_date_start>
<need_date_end>2020-01-22 02:22:11</need_date_end>
<buyer>null</buyer>
<address_id>null</address_id>
<address_info>null</address_info>
<receiver>null</receiver>
<purchase_org_id>null</purchase_org_id>
<purchase_requisition_id>PR10084</purchase_requisition_id>
<goods_quotation_id>2323</goods_quotation_id>
<address_ext>杭州市余杭区</address_ext>
<sku_id>1001</sku_id>
<gmt_create>2020-01-22 02:22:11</gmt_create>
<remark>你好呀</remark>
<status>null</status>
<project_id>1009</project_id>
<budget_id>1009</budget_id>
<line_number>111</line_number>
<product_id>111</product_id>
<is_designated_supplier>null</is_designated_supplier>
<designated_supplier>null</designated_supplier>
<pur_type>null</pur_type>
<tenant_id>1222</tenant_id>
<supplier_id>1222</supplier_id>
<contract_code>afd1234234324</contract_code>
<tax_rate>1.01</tax_rate>
<item_attr_info>null</item_attr_info>
<po_unit_price>20000</po_unit_price>
<ext>null</ext>
<is_pr_by_detail>true</is_pr_by_detail>
<finance_distribution_list>
<finance_distribution_top_d_t_o>
<id>11132</id>
<biz_id>1</biz_id>
<allocation_amount>10000</allocation_amount>
<allocation_quantity>10000</allocation_quantity>
<unit_price>10000</unit_price>
<total_amount>199999</total_amount>
<total_quantity>19999</total_quantity>
<allocation_value>333</allocation_value>
<item_description>这件很好</item_description>
<parent_distribution_id>4</parent_distribution_id>
<acct_ccid>12</acct_ccid>
<source_id>122</source_id>
<currency_code>1</currency_code>
</finance_distribution_top_d_t_o>
</finance_distribution_list>
<order_type>3</order_type>
<surplus_amount_max>100.00</surplus_amount_max>
<surplus_amount_sum>30.00</surplus_amount_sum>
<category_use_name>默认规则</category_use_name>
<category_name>IT</category_name>
<buyer_name>嘻嘻</buyer_name>
<cancel_amount>20.00</cancel_amount>
</pr_item_top_response_d_t_o>
</pr_items>
<files>
<aecp_file>
<id>1</id>
<name>1</name>
<url>https://www.baidi.com</url>
<preview_url>https://www.baidi.com</preview_url>
<uploader>
<work_no>wb8073453</work_no>
<name>李红</name>
<nick_name>红红</nick_name>
</uploader>
<upload_time>2020-01-22 02:22:11</upload_time>
</aecp_file>
</files>
<amount_available>50.00</amount_available>
<status_desc>审批完成</status_desc>
<ou_name>蚂蚁</ou_name>
<ou_code>Z69</ou_code>
<person_list>
<person_d_t_o>
<work_no>123456</work_no>
<user_name>张三(test)</user_name>
</person_d_t_o>
</person_list>
</pr_top_response_d_t_o>
</contents>
<error_msg>错误了</error_msg>
<error_level>3</error_level>
</result>
</alibaba_pr_query_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|