【商旅】搜索审批单列表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenIsvSearchRq | 必须 | 请求对象 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | result | 服务出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripCorpopApplySearchRequest req = new AlitripBtripCorpopApplySearchRequest(); AlitripBtripCorpopApplySearchRequest.OpenIsvSearchRq obj1 = new AlitripBtripCorpopApplySearchRequest.OpenIsvSearchRq(); obj1.setAllApply(true); obj1.setCorpId("corp1"); obj1.setDepartId("dept1"); obj1.setEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setGmtModified(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setOnlyShangLvApply(false); obj1.setPage(1L); obj1.setPageSize(10L); obj1.setStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUserId("user1"); obj1.setVersion(2L); obj1.setType(2L); obj1.setUnionNo("abas1231"); req.setRq(obj1); AlitripBtripCorpopApplySearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_corpop_apply_search_response> <result> <module_list> <open_isv_apply_rs> <apply_show_id>201710111505000464651</apply_show_id> <id>12345</id> <gmt_create>2017-05-01 00:00:00</gmt_create> <gmt_modified>2017-05-01 00:00:00</gmt_modified> <thirdpart_id>abc</thirdpart_id> <corp_id>corp1</corp_id> <user_id>user1</user_id> <depart_id>dept1</depart_id> <corp_name>阿里巴巴</corp_name> <user_name>张三</user_name> <depart_name>淘宝</depart_name> <trip_day>1</trip_day> <trip_cause>北京出差</trip_cause> <trip_title>北京出差</trip_title> <status>1</status> <status_desc>同意</status_desc> <itinerary_list> <open_itinerary_info> <trip_way>1</trip_way> <itinerary_id>abcdefg</itinerary_id> <traffic_type>0</traffic_type> <dep_city>杭州</dep_city> <arr_city>北京</arr_city> <cost_center_name>阿里巴巴</cost_center_name> <invoice_name>阿里巴巴</invoice_name> <dep_date>2017-05-01 00:00:00</dep_date> <arr_date>2017-05-01 00:00:00</arr_date> <project_code>xm1</project_code> <project_title>项目1</project_title> </open_itinerary_info> </itinerary_list> <traveler_list> <open_user_info> <user_id>user1</user_id> <user_name>张三</user_name> </open_user_info> </traveler_list> <approver_list> <open_approver_info> <order>1</order> <user_name>张三</user_name> <user_id>user1</user_id> <status>1</status> <status_desc>同意</status_desc> <note>同意</note> <operate_time>2017-05-01 00:00:00</operate_time> </open_approver_info> </approver_list> <flow_code>abc123</flow_code> <thirdpart_business_id>abc</thirdpart_business_id> <type>2</type> <union_no>abc</union_no> <external_traveler_list> <open_user_info> <user_name>张三</user_name> </open_user_info> </external_traveler_list> <itinerary_rule>0</itinerary_rule> <itinerary_set_list> <open_itinerary_info> <itinerary_id>bxcsjhbdcjhs</itinerary_id> <traffic_type>0</traffic_type> <city_set>上海,北京</city_set> <city_code_set>SHA,BJS</city_code_set> <dep_date>2017-05-01 00:00:00</dep_date> <arr_date>2017-05-01 00:00:00</arr_date> <cost_center_name>成本中心名称</cost_center_name> <invoice_name>发票抬头</invoice_name> <project_code>项目编号</project_code> <project_title>项目名称</project_title> </open_itinerary_info> </itinerary_set_list> </open_isv_apply_rs> </module_list> <result_code>成功</result_code> <result_msg>0</result_msg> <is_success>true</is_success> </result> </alitrip_btrip_corpop_apply_search_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|---|---|
404 | 没有找到对应的审批单 | 排查一下入参 是否正确 |