|
@ -307,7 +307,7 @@ public class JobService {
|
|
|
}
|
|
|
|
|
|
|
|
|
public void productDataByDayToDayAndId(String start, String end, String id) throws Exception {
|
|
|
public void productDataByDayToDayAndId(String start, String end, String ids) throws Exception {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
Date startDate = sdf.parse(start);
|
|
|
Date endDate = sdf.parse(end);
|
|
@ -315,9 +315,12 @@ public class JobService {
|
|
|
throw new Exception("日期参数错误");
|
|
|
}
|
|
|
int day = daysBetween(startDate, endDate);
|
|
|
String [] idStr=ids.split(",");
|
|
|
for (int i = 0; i < day; i++) {
|
|
|
Cache.cleanCache();//清空缓存
|
|
|
productDataByOneDayWithId(getYesterday(i, startDate), id);
|
|
|
for(String id:idStr){
|
|
|
productDataByOneDayWithId(getYesterday(i, startDate), id);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|