|
@@ -64,7 +64,7 @@ public class TDataDisplayController extends BaseController
|
|
|
alarmListDto.setCreatetime(dto.getCreatetime());
|
|
|
alarmListDtoList.add(alarmListDto);
|
|
|
}
|
|
|
- return getDataTable(alarmListDtoList);
|
|
|
+ return getDataTable1(alarmListDtoList,tShouhuanAlarmListService.selectTShouhuanAlarmListCount());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -115,6 +115,39 @@ public class TDataDisplayController extends BaseController
|
|
|
return success(dto);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 总数
|
|
|
+ */
|
|
|
+ @GetMapping("/deviceView")
|
|
|
+ public AjaxResult deviceView()
|
|
|
+ {
|
|
|
+ DeviceViewDto dto = new DeviceViewDto();
|
|
|
+ return success();
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 查询SOS预警处理列表
|
|
|
+ */
|
|
|
+ @GetMapping("/alarmList")
|
|
|
+ public AjaxResult alarmList(DataAlarmListDto dataAlarmListDto)
|
|
|
+ {
|
|
|
+ List<DataAlarmListDto> list = tShouhuanAlarmListService.selectTShouhuanAlarmList(dataAlarmListDto);
|
|
|
+ List<MessageAlarmListDto> messageAlarmListDtoList = new ArrayList<>();
|
|
|
+ for (DataAlarmListDto dto : list){
|
|
|
+ MessageAlarmListDto alarmListDto = new MessageAlarmListDto();
|
|
|
+ alarmListDto.setName(dto.getName());
|
|
|
+ alarmListDto.setTelno(dto.getTel_one());
|
|
|
+ alarmListDto.setGps_long(dto.getGps_long());
|
|
|
+ alarmListDto.setGps_lat(dto.getGps_lat());
|
|
|
+ alarmListDto.setAddress(getCounterLocation(dto.getGps_long() + "," + dto.getGps_lat()));
|
|
|
+ alarmListDto.setAlarm_type(dto.getAlarm_type());
|
|
|
+ alarmListDto.setCreatetime(dto.getCreatetime());
|
|
|
+ messageAlarmListDtoList.add(alarmListDto);
|
|
|
+ }
|
|
|
+ return success(messageAlarmListDtoList);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 逆地理编码
|
|
|
* @param location
|
|
@@ -138,6 +171,6 @@ public class TDataDisplayController extends BaseController
|
|
|
NumberFormat numberFormat = NumberFormat.getInstance();
|
|
|
numberFormat.setMaximumFractionDigits(2);
|
|
|
String result = numberFormat.format((float)num1/(float)num2*100);
|
|
|
- return result + "%";
|
|
|
+ return result;
|
|
|
}
|
|
|
}
|