|
@@ -32,7 +32,7 @@ public class BigScreenController {
|
|
|
@Autowired
|
|
|
private BigScreenService bigScreenService;
|
|
|
|
|
|
-
|
|
|
+ /////////////////////////////////////////////////////////运营商大屏////////////////////////////////////////////////////
|
|
|
/**
|
|
|
* 运营商大屏统计查询
|
|
|
*/
|
|
@@ -41,16 +41,83 @@ public class BigScreenController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息")
|
|
|
})
|
|
|
- public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOp(@RequestHeader("token") String token) {
|
|
|
+ public Result<OpBigScreenStatisticsVO> selectBigScreenStatisticsByOp(@RequestHeader("token") String token) {
|
|
|
try {
|
|
|
- BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(null,null);
|
|
|
- return Result.success(bigScreenStatisticsVO);
|
|
|
+ OpBigScreenStatisticsVO opBigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByOp(null);
|
|
|
+ return Result.success(opBigScreenStatisticsVO);
|
|
|
} catch (Exception e) {
|
|
|
log.error("运营商大屏统计查询出现异常",e);
|
|
|
return Result.error("系统错误,运营商大屏统计查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏的站点统计查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏的站点统计查询", notes = "运营商大屏的站点统计查询")
|
|
|
+ @GetMapping("/selectOpBigScreenStatisticsByStation")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<OpBigScreenStatisticsVO> selectOpBigScreenStatisticsByStation(@RequestHeader("token") String token, Long stationId) {
|
|
|
+ try {
|
|
|
+ OpBigScreenStatisticsVO opBigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByOp(stationId);
|
|
|
+ return Result.success(opBigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏的站点统计查询出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏的站点统计查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏的根据经纬度查询统计值
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏的根据经纬度查询统计值", notes = "运营商大屏的根据经纬度查询统计值")
|
|
|
+ @GetMapping("/selectOpBigScreenStatisticsByLongitudeLatitude")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
+ @ApiImplicitParam(name = "longitudeLeftUp", value = "左上经度", dataTypeClass = String.class,required = true),
|
|
|
+ @ApiImplicitParam(name = "latitudeLeftUp", value = "左上维度", dataTypeClass = String.class,required = true),
|
|
|
+ @ApiImplicitParam(name = "longitudeRightDown", value = "右下经度", dataTypeClass = String.class,required = true),
|
|
|
+ @ApiImplicitParam(name = "latitudeRightDown", value = "右下维度", dataTypeClass = String.class,required = true)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<OpBigScreenStatisticsVO> selectOpBigScreenStatisticsByLongitudeLatitude(@RequestHeader("token") String token, String longitudeLeftUp, String latitudeLeftUp, String longitudeRightDown, String latitudeRightDown) {
|
|
|
+ try {
|
|
|
+ OpBigScreenStatisticsVO opBigScreenStatisticsVO = bigScreenService.selectOpBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown);
|
|
|
+ return Result.success(opBigScreenStatisticsVO);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏或机构大屏的根据经纬度查询统计值出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏或机构大屏的根据经纬度查询统计值失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 运营商大屏的站点列表查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "运营商大屏的站点列表查询", notes = "运营商大屏的站点列表查询")
|
|
|
+ @GetMapping("/selectOpBigScreenStationList")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息")
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenStationVO>> selectOpBigScreenStationList(@RequestHeader("token") String token) {
|
|
|
+ try {
|
|
|
+ List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationList(null);
|
|
|
+ return Result.success(bigScreenStationVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("运营商大屏的站点列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,运营商大屏的站点列表查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /////////////////////////////////////////////////////////机构大屏////////////////////////////////////////////////////
|
|
|
/**
|
|
|
* 机构大屏统计查询
|
|
|
*/
|
|
@@ -62,31 +129,30 @@ public class BigScreenController {
|
|
|
@ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOrg(@RequestHeader("token") String token,Long orgId) {
|
|
|
+ public Result<OrgBigScreenStatisticsVO> selectBigScreenStatisticsByOrg(@RequestHeader("token") String token, Long orgId) {
|
|
|
try {
|
|
|
- BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(null,orgId);
|
|
|
- return Result.success(bigScreenStatisticsVO);
|
|
|
+ OrgBigScreenStatisticsVO orgBigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByOrg(null,orgId);
|
|
|
+ return Result.success(orgBigScreenStatisticsVO);
|
|
|
} catch (Exception e) {
|
|
|
log.error("机构大屏统计查询异常",e);
|
|
|
return Result.error("系统错误,机构大屏统计查询失败");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
/**
|
|
|
- * 运营商大屏或机构大屏的站点统计查询
|
|
|
+ * 机构大屏的站点统计查询
|
|
|
*/
|
|
|
- @ApiOperation(value = "运营商大屏或机构大屏的站点统计查询", notes = "运营商大屏或机构大屏的站点统计查询")
|
|
|
- @GetMapping("/selectBigScreenStatisticsByStation")
|
|
|
+ @ApiOperation(value = "机构大屏的站点统计查询", notes = "机构大屏的站点统计查询")
|
|
|
+ @GetMapping("/selectOrgBigScreenStatisticsByStation")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
@ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByStation(@RequestHeader("token") String token,Long stationId) {
|
|
|
+ public Result<OrgBigScreenStatisticsVO> selectOrgBigScreenStatisticsByStation(@RequestHeader("token") String token, Long stationId) {
|
|
|
try {
|
|
|
- BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatistics(stationId,null);
|
|
|
- return Result.success(bigScreenStatisticsVO);
|
|
|
+ OrgBigScreenStatisticsVO orgBigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByOrg(stationId,null);
|
|
|
+ return Result.success(orgBigScreenStatisticsVO);
|
|
|
} catch (Exception e) {
|
|
|
log.error("运营商大屏或机构大屏的站点统计查询出现异常",e);
|
|
|
return Result.error("系统错误,运营商大屏或机构大屏的站点统计查询失败");
|
|
@@ -94,10 +160,10 @@ public class BigScreenController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 运营商大屏或机构大屏的根据经纬度查询统计值
|
|
|
+ * 机构大屏的根据经纬度查询统计值
|
|
|
*/
|
|
|
- @ApiOperation(value = "运营商大屏或机构大屏的根据经纬度查询统计值", notes = "运营商大屏或机构大屏的根据经纬度查询统计值")
|
|
|
- @GetMapping("/selectBigScreenStatisticsByLongitudeLatitude")
|
|
|
+ @ApiOperation(value = "机构大屏的根据经纬度查询统计值", notes = "机构大屏的根据经纬度查询统计值")
|
|
|
+ @GetMapping("/selectOrgBigScreenStatisticsByLongitudeLatitude")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
@@ -105,82 +171,84 @@ public class BigScreenController {
|
|
|
@ApiImplicitParam(name = "latitudeLeftUp", value = "左上维度", dataTypeClass = String.class,required = true),
|
|
|
@ApiImplicitParam(name = "longitudeRightDown", value = "右下经度", dataTypeClass = String.class,required = true),
|
|
|
@ApiImplicitParam(name = "latitudeRightDown", value = "右下维度", dataTypeClass = String.class,required = true),
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(@RequestHeader("token") String token,String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
|
|
|
+ public Result<OrgBigScreenStatisticsVO> selectOrgBigScreenStatisticsByLongitudeLatitude(@RequestHeader("token") String token, String longitudeLeftUp, String latitudeLeftUp, String longitudeRightDown, String latitudeRightDown, Long orgId) {
|
|
|
try {
|
|
|
- BigScreenStatisticsVO bigScreenStatisticsVO = bigScreenService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
|
|
|
- return Result.success(bigScreenStatisticsVO);
|
|
|
+ OrgBigScreenStatisticsVO orgBigScreenStatisticsVO = bigScreenService.selectOrgBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
|
|
|
+ return Result.success(orgBigScreenStatisticsVO);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("运营商大屏或机构大屏的根据经纬度查询统计值出现异常",e);
|
|
|
- return Result.error("系统错误,运营商大屏或机构大屏的根据经纬度查询统计值失败");
|
|
|
+ log.error("机构大屏的根据经纬度查询统计值出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的根据经纬度查询统计值失败");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
/**
|
|
|
- * 运营商大屏或机构大屏的站点列表查询
|
|
|
+ * 机构大屏的站点列表查询
|
|
|
*/
|
|
|
- @ApiOperation(value = "运营商大屏或机构大屏的站点列表查询", notes = "运营商大屏或机构大屏的站点列表查询")
|
|
|
- @GetMapping("/selectBigScreenStationList")
|
|
|
+ @ApiOperation(value = "机构大屏的站点列表查询", notes = "机构大屏的站点列表查询")
|
|
|
+ @GetMapping("/selectOrgBigScreenStationList")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<List<BigScreenStationVO>> selectBigScreenStationList(@RequestHeader("token") String token,Long orgId) {
|
|
|
+ public Result<List<BigScreenStationVO>> selectOrgBigScreenStationList(@RequestHeader("token") String token,Long orgId) {
|
|
|
try {
|
|
|
List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationList(orgId);
|
|
|
return Result.success(bigScreenStationVOList);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("运营商大屏或机构大屏的站点列表查询出现异常",e);
|
|
|
- return Result.error("系统错误,运营商大屏或机构大屏的站点列表查询失败");
|
|
|
+ log.error("机构大屏的站点列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的站点列表查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 机构大屏的站点列表用户数TOP5查询
|
|
|
+ * 机构大屏的进行中的安全事件列表查询
|
|
|
*/
|
|
|
- @ApiOperation(value = "机构大屏的站点列表用户数TOP5查询", notes = "机构大屏的站点列表用户数TOP5查询")
|
|
|
- @GetMapping("/selectBigScreenStationListOlderTop5")
|
|
|
+ @ApiOperation(value = "机构大屏的进行中的安全事件列表查询", notes = "机构大屏的进行中的安全事件列表查询")
|
|
|
+ @GetMapping("/selectOrgBigScreenRtEventList")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
@ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<List<BigScreenStationVO>> selectBigScreenStationListOlderTop5(@RequestHeader("token") String token,Long orgId) {
|
|
|
+ public Result<List<BigScreenEventVO>> selectOrgBigScreenRtEventList(@RequestHeader("token") String token,Long orgId) {
|
|
|
try {
|
|
|
- List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationListOlderTop5(orgId);
|
|
|
- return Result.success(bigScreenStationVOList);
|
|
|
+ List<BigScreenEventVO> bigScreenEventVOList = bigScreenService.selectBigScreenRtEventList(orgId,null);
|
|
|
+ return Result.success(bigScreenEventVOList);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("机构大屏的站点列表用户数TOP5查询出现异常",e);
|
|
|
- return Result.error("系统错误,机构大屏的站点列表用户数TOP5查询失败");
|
|
|
+ log.error("机构大屏的进行中的安全事件列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的进行中的安全事件列表查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 机构大屏的站点列表安全事件TOP5查询
|
|
|
+ * 机构大屏的设备列表查询
|
|
|
*/
|
|
|
- @ApiOperation(value = "机构大屏的站点列表安全事件TOP5查询", notes = "机构大屏的站点列表安全事件TOP5查询")
|
|
|
- @GetMapping("/selectBigScreenStationListEventTop5")
|
|
|
+ @ApiOperation(value = "机构大屏的设备列表查询", notes = "机构大屏的设备列表查询")
|
|
|
+ @GetMapping("/selectOrgBigScreenDeviceList")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
@ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true),
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "服务站ID", dataTypeClass = Long.class,required = false),
|
|
|
+ @ApiImplicitParam(name = "status", value = "状态:1在线;2:离线", dataTypeClass = String.class,required = false)
|
|
|
}
|
|
|
)
|
|
|
- public Result<List<BigScreenStationVO>> selectBigScreenStationListEventTop5(@RequestHeader("token") String token,Long orgId) {
|
|
|
+ public Result<List<BigScreenDeviceVO>> selectOrgBigScreenDeviceList(@RequestHeader("token") String token,Long orgId,Long stationId,String status) {
|
|
|
try {
|
|
|
- List<BigScreenStationVO> bigScreenStationVOList = bigScreenService.selectBigScreenStationListEventTop5(orgId);
|
|
|
- return Result.success(bigScreenStationVOList);
|
|
|
+ List<BigScreenDeviceVO> bigScreenDeviceVOList = bigScreenService.selectOrgBigScreenDeviceList(orgId,stationId,status);
|
|
|
+ return Result.success(bigScreenDeviceVOList);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("机构大屏的站点列表安全事件TOP5查询出现异常",e);
|
|
|
- return Result.error("系统错误,机构大屏的站点列表安全事件TOP5查询失败");
|
|
|
+ log.error("机构大屏的设备列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,机构大屏的设备列表查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /////////////////////////////////////////////////////////服务站大屏////////////////////////////////////////////////////
|
|
|
/**
|
|
|
* 服务站大屏的站点统计查询
|
|
|
*/
|
|
@@ -192,10 +260,10 @@ public class BigScreenController {
|
|
|
@ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
- public Result<BigScreenStationStatisticsVO> selectStationBigScreenStatisticsByStation(@RequestHeader("token") String token,Long stationId) {
|
|
|
+ public Result<StationBigScreenStatisticsVO> selectStationBigScreenStatisticsByStation(@RequestHeader("token") String token, Long stationId) {
|
|
|
try {
|
|
|
- BigScreenStationStatisticsVO bigScreenStationStatisticsVO = bigScreenService.selectStationBigScreenStatisticsByStation(stationId);
|
|
|
- return Result.success(bigScreenStationStatisticsVO);
|
|
|
+ StationBigScreenStatisticsVO stationBigScreenStatisticsVO = bigScreenService.selectStationBigScreenStatisticsByStation(stationId);
|
|
|
+ return Result.success(stationBigScreenStatisticsVO);
|
|
|
} catch (Exception e) {
|
|
|
log.error("服务站大屏的站点统计查询出现异常",e);
|
|
|
return Result.error("系统错误,服务站大屏的站点统计查询失败");
|
|
@@ -281,11 +349,11 @@ public class BigScreenController {
|
|
|
)
|
|
|
public Result<List<BigScreenEventVO>> selectBigScreenRtEventList(@RequestHeader("token") String token,Long stationId) {
|
|
|
try {
|
|
|
- List<BigScreenEventVO> bigScreenEventVOList = bigScreenService.selectBigScreenRtEventList(stationId);
|
|
|
+ List<BigScreenEventVO> bigScreenEventVOList = bigScreenService.selectBigScreenRtEventList(null,stationId);
|
|
|
return Result.success(bigScreenEventVOList);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("告警用户列表查询出现异常",e);
|
|
|
- return Result.error("系统错误,告警用户列表查询失败");
|
|
|
+ log.error("服务站大屏的实时安全事件列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,服务站大屏的实时安全事件列表查询失败");
|
|
|
}
|
|
|
}
|
|
|
|