|
@@ -61,8 +61,11 @@ public class ZhcxReprotSameDayRealTimeInspectionStatisticsServiceImpl extends Se
|
|
|
//统计时间
|
|
|
Date statisticsTime = calendar.getTime();
|
|
|
|
|
|
- //前一小时结束时间
|
|
|
- calendar.add(Calendar.MILLISECOND, -1);
|
|
|
+ //当前最后一小时
|
|
|
+ calendar.set(Calendar.HOUR, 23);
|
|
|
+ calendar.set(Calendar.MINUTE, 59);
|
|
|
+ calendar.set(Calendar.SECOND, 59);
|
|
|
+ calendar.set(Calendar.MILLISECOND, 999);
|
|
|
String endTime = dateFormat.format(calendar.getTime());
|
|
|
|
|
|
//前一小时报验单
|