|
@@ -4,6 +4,9 @@ package com.care.bigscreen.controller;
|
|
|
import com.care.bigscreen.service.BigScreenService;
|
|
|
import com.care.bigscreen.vo.*;
|
|
|
|
|
|
+import com.care.common.vo.PageResVO;
|
|
|
+import com.care.util.PageResult;
|
|
|
+import com.care.util.PageUtil;
|
|
|
import com.care.util.Result;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -53,7 +56,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenStatisticsByOrg")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOrg(Long orgId) {
|
|
@@ -73,7 +76,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenStatisticsByStation")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByStation(Long stationId) {
|
|
@@ -93,11 +96,11 @@ public class BigScreenController {
|
|
|
@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)
|
|
|
+ @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),
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
|
|
|
}
|
|
|
)
|
|
|
public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
|
|
@@ -117,7 +120,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenStationList")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
|
|
|
}
|
|
|
)
|
|
|
public Result<List<BigScreenStationVO>> selectBigScreenStationList(Long orgId) {
|
|
@@ -137,7 +140,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenStationListOlderTop5")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<List<BigScreenStationVO>> selectBigScreenStationListOlderTop5(Long orgId) {
|
|
@@ -157,7 +160,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenStationListEventTop5")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<List<BigScreenStationVO>> selectBigScreenStationListEventTop5(Long orgId) {
|
|
@@ -177,7 +180,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectStationBigScreenStatisticsByStation")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<BigScreenStationStatisticsVO> selectStationBigScreenStatisticsByStation(Long stationId) {
|
|
@@ -198,12 +201,13 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectBigScreenAlarmOlderList")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true),
|
|
|
+ @ApiImplicitParam(name = "olderName", value = "被监护人姓名", dataTypeClass = String.class,required = false)
|
|
|
}
|
|
|
)
|
|
|
- public Result<List<BigScreenAlarmOlderVO>> selectBigScreenAlarmOlderList(Long stationId) {
|
|
|
+ public Result<List<BigScreenAlarmOlderVO>> selectBigScreenAlarmOlderList(Long stationId,String olderName) {
|
|
|
try {
|
|
|
- List<BigScreenAlarmOlderVO> bigScreenAlarmOlderVOList = bigScreenService.selectBigScreenAlarmOlderList(stationId);
|
|
|
+ List<BigScreenAlarmOlderVO> bigScreenAlarmOlderVOList = bigScreenService.selectBigScreenAlarmOlderList(stationId,olderName);
|
|
|
return Result.success(bigScreenAlarmOlderVOList);
|
|
|
} catch (Exception e) {
|
|
|
log.error("告警用户列表查询出现异常",e);
|
|
@@ -219,7 +223,7 @@ public class BigScreenController {
|
|
|
@GetMapping("/selectStationBigScreenOlderDetail")
|
|
|
@ApiImplicitParams(
|
|
|
{
|
|
|
- @ApiImplicitParam(name = "olderId", value = "监护人ID", dataTypeClass = Long.class)
|
|
|
+ @ApiImplicitParam(name = "olderId", value = "被监护人ID", dataTypeClass = Long.class,required = true)
|
|
|
}
|
|
|
)
|
|
|
public Result<BigScreenOlderDetailVO> selectStationBigScreenOlderDetail(Long olderId) {
|
|
@@ -232,4 +236,47 @@ public class BigScreenController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 服务站大屏的实时安全事件列表查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "服务站大屏的实时安全事件列表查询", notes = "服务站大屏的实时安全事件列表查询")
|
|
|
+ @GetMapping("/selectBigScreenRtEventList")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public Result<List<BigScreenEventVO>> selectBigScreenRtEventList(Long stationId) {
|
|
|
+ try {
|
|
|
+ List<BigScreenEventVO> bigScreenEventVOList = bigScreenService.selectBigScreenRtEventList(stationId);
|
|
|
+ return Result.success(bigScreenEventVOList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("告警用户列表查询出现异常",e);
|
|
|
+ return Result.error("系统错误,告警用户列表查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 服务站大屏的已完成安全事件列表分页查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "服务站大屏的已完成安全事件列表分页查询", notes = "服务站大屏的已完成安全事件列表分页查询")
|
|
|
+ @GetMapping("/selectBigScreenHisEventListByPage")
|
|
|
+ @ApiImplicitParams(
|
|
|
+ {
|
|
|
+ @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ public PageResult<List<BigScreenEventVO>> selectBigScreenHisEventListByPage(Long stationId, PageResVO page) {
|
|
|
+ try {
|
|
|
+ PageUtil<BigScreenEventVO> bigScreenEventVOListByPage = bigScreenService.selectBigScreenHisEventListByPage(stationId,page);
|
|
|
+ return PageResult.success(
|
|
|
+ "查询成功",bigScreenEventVOListByPage.getListT(),
|
|
|
+ bigScreenEventVOListByPage.getCurrent(),
|
|
|
+ bigScreenEventVOListByPage.getPageSize(),
|
|
|
+ bigScreenEventVOListByPage.getTotal());
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("服务站大屏的已完成安全事件列表分页查询出现异常",e);
|
|
|
+ return PageResult.error("系统错误,服务站大屏的已完成安全事件列表分页查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|