| | |
| | | |
| | | private static final String GET_ORDER_INNER_URL="http://192.168.18.16:9999/order/otcService/getOrderLineForHyxtMes"; |
| | | |
| | | private static final String GET_ATTACHMENT_BY_ORDERID = "http://192.168.18.16:9999/order/otcService/getAttachmentByOrderId/"; |
| | | |
| | | private static final String DOWN_LOAD = "http://192.168.18.16:9999/order/otcService/download/"; |
| | | |
| | | private static final Map<String, String> GET_TOKEN_HEADER=new HashMap<>(2); |
| | | |
| | | private static final Map<String, Object>USER_INFO=new HashMap<>(4); |
| | |
| | | List<Map<String, Object>>list = JsonUtil.jsonToPojo(JsonUtil.jsonToString(JsonUtil.jsonToPojo(result,Result.class).getData()),List.class); |
| | | return list; |
| | | } |
| | | |
| | | public static List<Map<String, Object>> getAttachmentByOrderId(Integer orderId) { |
| | | String result = HttpRequest.get(GET_ATTACHMENT_BY_ORDERID + orderId) |
| | | .header("Authorization", "Bearer " + getToken()) |
| | | .execute().body(); |
| | | List<Map<String, Object>> list = JsonUtil.jsonToPojo(JsonUtil.jsonToString(JsonUtil.jsonToPojo(result, Result.class).getData()), List.class); |
| | | return list; |
| | | } |
| | | |
| | | public static String download(Integer id) { |
| | | String result = HttpRequest.get(DOWN_LOAD + id) |
| | | .header("Authorization", "Bearer " + getToken()) |
| | | .execute().body(); |
| | | return result; |
| | | } |
| | | } |