|
@@ -38,12 +38,11 @@ public class KwaixiaodianInfoJob {
|
|
|
@XxlJob("historyDateDetail")
|
|
|
public void historyDateDetail() throws Exception {
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
- Long endDate = Long.valueOf(DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1).replace("-", ""));
|
|
|
Long startDate = Long.valueOf(DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -60).replace("-", ""));
|
|
|
- Long nowDateLong = Long.valueOf(nowDate.replace("-", ""));
|
|
|
- kwaixiaodianInfoService.deleteByDate(nowDateLong);
|
|
|
+ Long endDate = Long.valueOf(nowDate.replace("-", ""));
|
|
|
+ kwaixiaodianInfoService.deleteByDate(endDate);
|
|
|
|
|
|
- List<JSONObject> dataList = kwaixiaodianInfoService.getSkuList(startDate, nowDateLong);
|
|
|
+ List<JSONObject> dataList = kwaixiaodianInfoService.getSkuList(startDate, endDate);
|
|
|
if (!Check.isNull(dataList)) {
|
|
|
for (int i = 0; i < dataList.size(); i++) {
|
|
|
JSONObject jsonObject = dataList.get(i);
|