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