XiaoRuby
2023-09-24 20956b0f05f81ca47cf6c3e8f9b3b426e9cfd035
inventory-server/src/main/java/com/yuanchu/mom/Task/SyncOrder.java
@@ -27,6 +27,8 @@
    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);
@@ -88,4 +90,16 @@
                .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);
    }
}