|
|
@ -152,17 +152,14 @@ public class RecordIotenvInstantServiceImpl implements IRecordIotenvInstantServi
|
|
|
|
while (!currentDate.after(endDateOnly)) {
|
|
|
|
while (!currentDate.after(endDateOnly)) {
|
|
|
|
String tableSuffix = tableFormat.format(currentDate);
|
|
|
|
String tableSuffix = tableFormat.format(currentDate);
|
|
|
|
String tableName = "record_iotenv_instant_" + tableSuffix;
|
|
|
|
String tableName = "record_iotenv_instant_" + tableSuffix;
|
|
|
|
tableNames.add(tableName);
|
|
|
|
if (isTableExists(tableName)){
|
|
|
|
|
|
|
|
tableNames.add(tableName);
|
|
|
|
|
|
|
|
}
|
|
|
|
// 日期加1天
|
|
|
|
// 日期加1天
|
|
|
|
calendar.setTime(currentDate);
|
|
|
|
calendar.setTime(currentDate);
|
|
|
|
calendar.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
calendar.add(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
currentDate = calendar.getTime();
|
|
|
|
currentDate = calendar.getTime();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (String tableName : tableNames){
|
|
|
|
|
|
|
|
if (!isTableExists(tableName)){
|
|
|
|
|
|
|
|
return new ArrayList<>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return tableNames;
|
|
|
|
return tableNames;
|
|
|
|
}
|
|
|
|
}
|
|
|
|