Bladeren bron

过滤条件

gongfuzhu 1 jaar geleden
bovenliggende
commit
2f07c16ce1

+ 4 - 2
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/api/dfy/DomesticHotelApi.java

@@ -1,6 +1,7 @@
 package com.zswl.cloud.springBtach.server.core.api.dfy;
 
 import cn.hutool.http.HttpUtil;
+import cn.hutool.json.JSONObject;
 import cn.hutool.json.JSONUtil;
 import com.zswl.cloud.springBatch.client.model.dfy.DfyBaseData;
 import com.zswl.cloud.springBatch.client.model.dfy.DfyRequestBase;
@@ -40,10 +41,11 @@ public class DomesticHotelApi {
 
     }
 
-    public HotelListResponse hotelList(HotelListRequest hotelListRequest) {
+    public JSONObject hotelList(HotelListRequest hotelListRequest) {
 
         String post = post(hotelListRequest, "/DomesticHotel/query/hotelList");
-        return JSONUtil.toBean(post, HotelListResponse.class);
+        JSONObject entries = JSONUtil.parseObj(post);
+        return entries;
 
     }