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