|
@ -326,6 +326,9 @@ public class JobService {
|
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
|
|
|
Date startDate=sdf.parse(start);
|
|
|
Date endDate=sdf.parse(end);
|
|
|
if(startDate.after(endDate)){
|
|
|
throw new Exception("日期参数错误");
|
|
|
}
|
|
|
int day=daysBetween(startDate,endDate);
|
|
|
for(int i=0;i<day;i++){
|
|
|
productDataByOneDay(getYesterday(i,new Date()));
|