| | |
| | | |
| | | private static final String DOWN_LOAD = "http://192.168.18.16:9999/order/otcService/download/"; |
| | | |
| | | private static final String IFS_URL="http://192.168.20.47:8008/PurchService.ashx?contract=ZTKJ&contractKey=4ttDeLKNsZuhstjtROMcRE1USNFXKdFYE7lQ2p1m5Bo=&procedureName=QUERY_POL_RECEIPT_STD&userId=mes_user&inAttr={\"ORDER_NO\":\"-2050314\"}"; |
| | | |
| | | private static final Map<String, String> GET_TOKEN_HEADER = new HashMap<>(2); |
| | | |
| | | private static final Map<String, Object> USER_INFO = new HashMap<>(4); |
| | |
| | | .execute().body(); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * ifs |
| | | * @return |
| | | */ |
| | | public static List<Map<String, Object>>ifsInterfaces(){ |
| | | String result = HttpRequest.get(IFS_URL) |
| | | .header("Authorization", "Bearer " + getToken()) |
| | | .execute().body(); |
| | | Map<String, Object>map=JsonUtil.jsonToPojo(result,Map.class); |
| | | return JsonUtil.jsonToPojo(JsonUtil.jsonToString(map.get("LIST_INFO")),List.class); |
| | | } |
| | | } |