|
@@ -0,0 +1,235 @@
|
|
|
+package com.care.bigscreen.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.care.bigscreen.service.BigScreenService;
|
|
|
+import com.care.bigscreen.vo.*;
|
|
|
+
|
|
|
+import com.care.util.Result;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author javadoc
|
|
|
+ * @version 1.0
|
|
|
+ * @description 大屏控制器
|
|
|
+ * @date
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+@RequestMapping("/bms/bigscreen")
|
|
|
+public class BigScreenController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BigScreenService bigScreenService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏统计查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏统计查询", notes = "运营商大屏统计查询")
|
|
|
+ @GetMapping("/selectBigScreenStatisticsByOp")
|
|
|
+
|
|
|
+ public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOp() {
|
|
|
+ try {
|
|
|
+ BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(null,null);
|
|
|
+ return Result.success(bigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏统计查询出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏统计查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 机构大屏统计查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "机构大屏统计查询", notes = "机构大屏统计查询")
|
|
|
+ @GetMapping("/selectBigScreenStatisticsByOrg")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOrg(Long orgId) {
|
|
|
+ try {
|
|
|
+ BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(null,orgId);
|
|
|
+ return Result.success(bigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("机构大屏统计查询异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏统计查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏或机构大屏的站点统计查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏或机构大屏的站点统计查询", notes = "运营商大屏或机构大屏的站点统计查询")
|
|
|
+ @GetMapping("/selectBigScreenStatisticsByStation")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByStation(Long stationId) {
|
|
|
+ try {
|
|
|
+ BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(stationId,null);
|
|
|
+ return Result.success(bigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏或机构大屏的站点统计查询出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏或机构大屏的站点统计查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏或机构大屏的根据经纬度查询统计值
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏或机构大屏的根据经纬度查询统计值", notes = "运营商大屏或机构大屏的根据经纬度查询统计值")
|
|
|
+ @GetMapping("/selectBigScreenStatisticsByLongitudeLatitude")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "longitudeLeftUp", value = "左上经度", dataTypeClass = String.class),
|
|
|
+ @ApiImplicitParam(name = "latitudeLeftUp", value = "左上维度", dataTypeClass = String.class),
|
|
|
+ @ApiImplicitParam(name = "longitudeRightDown", value = "右下经度", dataTypeClass = String.class),
|
|
|
+ @ApiImplicitParam(name = "latitudeRightDown", value = "右下维度", dataTypeClass = String.class),
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
|
|
|
+ try {
|
|
|
+ BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
|
|
|
+ return Result.success(bigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏或机构大屏的根据经纬度查询统计值出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏或机构大屏的根据经纬度查询统计值失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏或机构大屏的站点列表查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏或机构大屏的站点列表查询", notes = "运营商大屏或机构大屏的站点列表查询")
|
|
|
+ @GetMapping("/selectBigScreenStationList")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenStationVO>> selectBigScreenStationList(Long orgId) {
|
|
|
+ try {
|
|
|
+ List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationList(orgId);
|
|
|
+ return Result.success(bigScreenStationVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏或机构大屏的站点列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏或机构大屏的站点列表查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 机构大屏的站点列表用户数TOP5查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "机构大屏的站点列表用户数TOP5查询", notes = "机构大屏的站点列表用户数TOP5查询")
|
|
|
+ @GetMapping("/selectBigScreenStationListOlderTop5")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenStationVO>> selectBigScreenStationListOlderTop5(Long orgId) {
|
|
|
+ try {
|
|
|
+ List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationListOlderTop5(orgId);
|
|
|
+ return Result.success(bigScreenStationVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("机构大屏的站点列表用户数TOP5查询出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的站点列表用户数TOP5查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 机构大屏的站点列表安全事件TOP5查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "机构大屏的站点列表安全事件TOP5查询", notes = "机构大屏的站点列表安全事件TOP5查询")
|
|
|
+ @GetMapping("/selectBigScreenStationListEventTop5")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenStationVO>> selectBigScreenStationListEventTop5(Long orgId) {
|
|
|
+ try {
|
|
|
+ List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationListEventTop5(orgId);
|
|
|
+ return Result.success(bigScreenStationVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("机构大屏的站点列表安全事件TOP5查询出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的站点列表安全事件TOP5查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务站大屏的站点统计查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "服务站大屏的站点统计查询", notes = "服务站大屏的站点统计查询")
|
|
|
+ @GetMapping("/selectStationBigScreenStatisticsByStation")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<BigScreenStationStatisticsVO> selectStationBigScreenStatisticsByStation(Long stationId) {
|
|
|
+ try {
|
|
|
+ BigScreenStationStatisticsVO bigScreenStationStatisticsVO = bigScreenService.selectStationBigScreenStatisticsByStation(stationId);
|
|
|
+ return Result.success(bigScreenStationStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("服务站大屏的站点统计查询出现异常",e);
|
|
|
+ return Result.error("系统错误,服务站大屏的站点统计查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务站大屏的告警用户列表查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "服务站大屏的告警用户列表查询", notes = "服务站大屏的告警用户列表查询")
|
|
|
+ @GetMapping("/selectBigScreenAlarmOlderList")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenAlarmOlderVO>> selectBigScreenAlarmOlderList(Long stationId) {
|
|
|
+ try {
|
|
|
+ List<BigScreenAlarmOlderVO> bigScreenAlarmOlderVOList = bigScreenService.selectBigScreenAlarmOlderList(stationId);
|
|
|
+ return Result.success(bigScreenAlarmOlderVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("告警用户列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,告警用户列表查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务站大屏的被监控人详细查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "服务站大屏的被监控人详细查询", notes = "服务站大屏的被监控人详细查询")
|
|
|
+ @GetMapping("/selectStationBigScreenOlderDetail")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "olderId", value = "监护人ID", dataTypeClass = Long.class)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<BigScreenOlderDetailVO> selectStationBigScreenOlderDetail(Long olderId) {
|
|
|
+ try {
|
|
|
+ BigScreenOlderDetailVO bigScreenOlderDetailVO = bigScreenService.selectStationBigScreenOlderDetail(olderId);
|
|
|
+ return Result.success(bigScreenOlderDetailVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("服务站大屏的被监控人详细查询出现异常",e);
|
|
|
+ return Result.error("系统错误,服务站大屏的被监控人详细查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|