|
@@ -165,6 +165,52 @@ public class TDataDisplayController extends BaseController
|
|
|
return AjaxResult.success("操作成功",ajax);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 用户新增
|
|
|
+ */
|
|
|
+ @GetMapping("/addUser")
|
|
|
+ public AjaxResult addUser()
|
|
|
+ {
|
|
|
+ List<AddUserDto> dtoList = userProfileService.selectAddUser();
|
|
|
+ return success(dtoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备新增
|
|
|
+ */
|
|
|
+ @GetMapping("/addDevice")
|
|
|
+ public AjaxResult addDevice()
|
|
|
+ {
|
|
|
+ List<AddDeviceDto> dtoList = tDeviceListService.selectAddDevice();
|
|
|
+ return success(dtoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备新增
|
|
|
+ */
|
|
|
+ @GetMapping("/alarmStatusList")
|
|
|
+ public AjaxResult alarmStatusList()
|
|
|
+ {
|
|
|
+ List<AlarmStatusListDto> dtoList = tShouhuanAlarmListService.selectAlarmStatusListDto();
|
|
|
+ for (AlarmStatusListDto dto : dtoList){
|
|
|
+ dto.setAlarm_msg(tDeviceListService.checkMessage(dto.getAlarm_type()));
|
|
|
+ }
|
|
|
+ return success(dtoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备总览
|
|
|
+ */
|
|
|
+ @GetMapping("/deviceOver")
|
|
|
+ public AjaxResult deviceOver()
|
|
|
+ {
|
|
|
+ DeviceOverDto dto = new DeviceOverDto();
|
|
|
+ dto.setBindDevice(tDeviceListService.selectDeviceListCount());
|
|
|
+ dto.setBindUser(tDeviceListService.selectTDeviceListBandUser());
|
|
|
+ dto.setDeviceOnline(tShouhuanAlarmListService.selectTShouhuanAlarmStatus());
|
|
|
+ return success(dto);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询SOS预警处理列表
|
|
|
*/
|