|
|
@ -1065,9 +1065,13 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
calendar.setTime(startTime); // 设置当前时间为 startTime
|
|
|
|
calendar.add(Calendar.YEAR, -1); // 减去一年
|
|
|
|
Date oneYearAgoStart = calendar.getTime(); // 一年前的开始时间
|
|
|
|
dcSdhsEventQuery.setStartTime(oneYearAgoStart); |
|
|
|
Map<String, Long> lastYearData = accidentTimeAnalysis(dcSdhsEventQuery); |
|
|
|
Date oneYearAgoStart = calendar.getTime(); // 一年前的开始时间‘
|
|
|
|
DcSdhsEventQuery dcSdhsEventQuery1 = new DcSdhsEventQuery(); |
|
|
|
dcSdhsEventQuery1.setStartTime(oneYearAgoStart); |
|
|
|
dcSdhsEventQuery1.setType(dcSdhsEventQuery.getType()); |
|
|
|
dcSdhsEventQuery1.setEndTime(dcSdhsEventQuery.getEndTime()); |
|
|
|
Map<String, Long> lastYearData = accidentTimeAnalysis(dcSdhsEventQuery1); |
|
|
|
|
|
|
|
String type = dcSdhsEventQuery.getType(); |
|
|
|
int rows = 0; |
|
|
|
String stingType = ""; |
|
|
|