...
|
...
|
@@ -6,7 +6,6 @@ import com.alibaba.excel.exception.ExcelDataConvertException; |
6
|
6
|
import com.alibaba.fastjson.JSONObject;
|
7
|
7
|
import com.ash.base.*;
|
8
|
8
|
import com.ash.base.excelOpt.ExcelErrorMessage;
|
9
|
|
-import com.ash.entity.Case;
|
10
|
9
|
import com.ash.entity.WarningInstance;
|
11
|
10
|
import com.ash.entity.WarningInstanceAnalysis;
|
12
|
11
|
import com.ash.entity.dao.WarningInstanceMapper;
|
...
|
...
|
@@ -202,7 +201,7 @@ public class WarningInstanceService { |
202
|
201
|
|
203
|
202
|
resultList.forEach(e -> {
|
204
|
203
|
String value = e.getValue();
|
205
|
|
- Integer iv = Integer.parseInt(value);
|
|
204
|
+ int iv = Integer.parseInt(value);
|
206
|
205
|
e.setValue(String.format("%.2f", iv * 1.0 / total.get() * 100.0));
|
207
|
206
|
});
|
208
|
207
|
}
|
...
|
...
|
@@ -292,7 +291,7 @@ public class WarningInstanceService { |
292
|
291
|
}
|
293
|
292
|
|
294
|
293
|
public List<BarChartVo> statisticsByDate(StatisticsParams params) {
|
295
|
|
- MPJQueryWrapper<WarningInstance> mpjQueryWrapper = new MPJQueryWrapper<WarningInstance>();
|
|
294
|
+ MPJQueryWrapper<WarningInstance> mpjQueryWrapper = new MPJQueryWrapper<>();
|
296
|
295
|
mpjQueryWrapper.select("DATE_FORMAT(t.alarm_date, '%Y-%m-%d') as alarmDate,count(0) as field_count");
|
297
|
296
|
|
298
|
297
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
...
|
...
|
@@ -319,7 +318,7 @@ public class WarningInstanceService { |
319
|
318
|
|
320
|
319
|
|
321
|
320
|
public List<BarChartVo> statisticsSequentialByArea(StatisticsParams params) {
|
322
|
|
- MPJQueryWrapper<WarningInstance> mpjQueryWrapper = new MPJQueryWrapper<WarningInstance>();
|
|
321
|
+ MPJQueryWrapper<WarningInstance> mpjQueryWrapper = new MPJQueryWrapper<>();
|
323
|
322
|
mpjQueryWrapper.select("wia.area,count(t.id) as field_count")
|
324
|
323
|
.leftJoin("t_ash_warning_instance_analysis wia on t.id=wia.wi_id");
|
325
|
324
|
|
...
|
...
|
|