|
@@ -27,15 +27,22 @@ public class RuixuanJob {
|
|
|
String today = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
String yesterday = DateUtils.getAnotherDay("yyyy-MM-dd", today, -1);
|
|
|
|
|
|
- Map<String, Object> requestMap = new HashMap<>();
|
|
|
- requestMap.put("shopId", param);
|
|
|
- requestMap.put("beginDate", yesterday);
|
|
|
- requestMap.put("endDate", today);
|
|
|
+ Map<String, Object> createMap = new HashMap<>();
|
|
|
+ createMap.put("shopId", param);
|
|
|
+ createMap.put("queryType", 1);
|
|
|
+ createMap.put("beginDate", yesterday);
|
|
|
+ createMap.put("endDate", today);
|
|
|
|
|
|
//获取订单列表
|
|
|
String listUrl = RX_IP + "kwaixiaodian/item/querykwaiOrderList";
|
|
|
- HttpUtils.httpGet(listUrl, requestMap, null);
|
|
|
-
|
|
|
+ HttpUtils.httpGet(listUrl, createMap, null);
|
|
|
+
|
|
|
+ Map<String, Object> updateMap = new HashMap<>();
|
|
|
+ updateMap.put("shopId", param);
|
|
|
+ updateMap.put("queryType", 2);
|
|
|
+ updateMap.put("beginDate", yesterday);
|
|
|
+ updateMap.put("endDate", today);
|
|
|
+ HttpUtils.httpGet(listUrl, updateMap, null);
|
|
|
}
|
|
|
|
|
|
}
|