|
@@ -16,20 +16,19 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class CheckSupplyChainJob {
|
|
|
|
|
|
- @XxlJob("todayCheckSupplyChainJob")
|
|
|
- public void todayCheckSupplyChainJob() throws Exception {
|
|
|
+ @XxlJob("checkSupplyChainTodayJob")
|
|
|
+ public void checkSupplyChainTodayJob() throws Exception {
|
|
|
|
|
|
String today = DateUtils.date2Str();
|
|
|
Map<String, Object> paramMap = new HashMap<String, Object>();
|
|
|
paramMap.put("endDate", today);
|
|
|
paramMap.put("beginDate", today);
|
|
|
HttpUtils.httpGet("http://ruixuan.api.tjyourong.com.cn/isv/supply_chain/addList", paramMap, null);
|
|
|
- XxlJobHelper.log(" --------当天供应链-快分销数据,执行完成-------- "+paramMap.toString());
|
|
|
+ XxlJobHelper.log(" --------当天供应链-快分销数据,执行完成-------- " + paramMap.toString());
|
|
|
}
|
|
|
|
|
|
- @XxlJob("twoDaysCheckSupplyChainJob")
|
|
|
- public void twoDaysCheckSupplyChainJob() throws Exception {
|
|
|
-
|
|
|
+ @XxlJob("checkSupplyChainTwoDaysJob")
|
|
|
+ public void checkSupplyChainTwoDaysJob() throws Exception {
|
|
|
String today = DateUtils.date2Str();
|
|
|
//昨天
|
|
|
String endDate = DateUtils.getLastDay(today, 1);
|
|
@@ -38,6 +37,6 @@ public class CheckSupplyChainJob {
|
|
|
paramMap.put("endDate", endDate);
|
|
|
paramMap.put("beginDate", beginDate);
|
|
|
HttpUtils.httpGet("http://ruixuan.api.tjyourong.com.cn/isv/supply_chain/addList", paramMap, null);
|
|
|
- XxlJobHelper.log(" --------前两天供应链-快分销数据,执行完成-------- "+paramMap.toString());
|
|
|
+ XxlJobHelper.log(" --------前两天供应链-快分销数据,执行完成-------- " + paramMap.toString());
|
|
|
}
|
|
|
}
|