|
@@ -83,6 +83,13 @@ public class KuaishouOrderLIstGetJob {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
|
+ String start = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -93);
|
|
|
|
+ String end = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
|
|
|
|
+ List<String> days = DateUtils.getDays(start, end);
|
|
|
|
+ System.err.println(days);
|
|
|
|
+ }
|
|
/**
|
|
/**
|
|
* 快分销-11、12月所有数据
|
|
* 快分销-11、12月所有数据
|
|
**/
|
|
**/
|
|
@@ -90,10 +97,10 @@ public class KuaishouOrderLIstGetJob {
|
|
public void allOrderGet() throws Exception {
|
|
public void allOrderGet() throws Exception {
|
|
log.info("-------------------------获取快分销订单上个月数据开始数据开始--------------------------");
|
|
log.info("-------------------------获取快分销订单上个月数据开始数据开始--------------------------");
|
|
// List<String> dateList = new ArrayList<>();
|
|
// List<String> dateList = new ArrayList<>();
|
|
- Map<String, String> monthStartAndEnd = DateUtils.getMonthStartAndEnd();
|
|
|
|
- String firstDay = monthStartAndEnd.get("firstDay");
|
|
|
|
- String lastDay = monthStartAndEnd.get("lastDay");
|
|
|
|
- List<String> days = DateUtils.getDays(firstDay, lastDay);
|
|
|
|
|
|
+ String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
|
+ String startDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -93);
|
|
|
|
+ String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
|
|
|
|
+ List<String> days = DateUtils.getDays(startDate, endDate);
|
|
|
|
|
|
List<JSONObject> cookies = ikuaishouSupplyChainService.getCookie();
|
|
List<JSONObject> cookies = ikuaishouSupplyChainService.getCookie();
|
|
if (Check.isNull(cookies)) {
|
|
if (Check.isNull(cookies)) {
|