|
@@ -28,7 +28,7 @@ public class RuiXuanBytedanceJob {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增团长订单
|
|
|
+ * 获取上个月团长订单
|
|
|
*/
|
|
|
@XxlJob("bytedanceInstituteOrderColonel")
|
|
|
public void bytedanceInstituteOrderColonel() throws Exception {
|
|
@@ -47,6 +47,26 @@ public class RuiXuanBytedanceJob {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取上 上个月 团长订单
|
|
|
+ */
|
|
|
+ @XxlJob("twoMonthsBytedanceOrder")
|
|
|
+ public void twoMonthsBytedanceOrder() throws Exception {
|
|
|
+ //获取上 上个月1号
|
|
|
+ String initMonth = DateUtils.initDateByMonth();
|
|
|
+ String startTime = DateUtils.getMonthBefore("yyyy-MM-dd", initMonth, -2);
|
|
|
+
|
|
|
+
|
|
|
+ String today = DateUtils.date2Str();
|
|
|
+ //昨天
|
|
|
+// String yesterday = DateUtils.getLastDay(today, 1);
|
|
|
+ Map<String, Object> paramMap = new HashMap<String, Object>();
|
|
|
+ paramMap.put("startTime", startTime);
|
|
|
+ paramMap.put("endTime", today);
|
|
|
+ HttpUtils.httpGet(URL + "/addBytedanceInstituteOrderColonel", paramMap, null);
|
|
|
+ XxlJobHelper.log(" --------团长订单列表,执行完成-------- ");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 新增团长订单
|
|
|
*/
|
|
|
@XxlJob("todayBytedanceInstituteOrderColonel")
|
|
@@ -58,4 +78,5 @@ public class RuiXuanBytedanceJob {
|
|
|
HttpUtils.httpGet(URL + "/addBytedanceInstituteOrderColonel", paramMap, null);
|
|
|
XxlJobHelper.log(" --------团长订单列表,执行完成-------- ");
|
|
|
}
|
|
|
+
|
|
|
}
|