|
@@ -569,7 +569,6 @@ public class KabeiyiServiceImpl implements KabeiyiService {
|
|
|
|
|
|
@Override
|
|
|
public McR getDeliveryInfo() {
|
|
|
- //todo 同步近一个月内的数据 upsert
|
|
|
//现在时间戳
|
|
|
long beginTime = System.currentTimeMillis();
|
|
|
|
|
@@ -601,9 +600,13 @@ public class KabeiyiServiceImpl implements KabeiyiService {
|
|
|
}
|
|
|
|
|
|
for (Integer dsSequence : factory.keySet()) {
|
|
|
+ //todo 同步近一个月内的数据 upsert
|
|
|
//获取昨天所有发货单
|
|
|
DateTime dateTime = DateUtil.offsetDay(new Date(), -1);
|
|
|
String yesterday = dateTime.toString("yyyy-MM-dd");
|
|
|
+ DateTime beginOfMonth = DateUtil.beginOfMonth(dateTime);
|
|
|
+ String beginOfMonthString = beginOfMonth.toString("yyyy-MM-dd");
|
|
|
+
|
|
|
// String yesterday = dateTime.toString("2024-09-22");
|
|
|
|
|
|
Map<String,Object> param = new HashMap<>();
|
|
@@ -614,7 +617,7 @@ public class KabeiyiServiceImpl implements KabeiyiService {
|
|
|
param.put("page_index", 1);
|
|
|
param.put("rows_per_page", 50);
|
|
|
param.put("ds_sequence", dsSequence);
|
|
|
- param.put("date_begin", yesterday);
|
|
|
+ param.put("date_begin", beginOfMonthString);
|
|
|
param.put("date_end", yesterday);
|
|
|
|
|
|
Map<String, Object> map = get("https://api.yonyouup.com/api/consignmentlist/batch_get", param, null);
|