Quellcode durchsuchen

服务站大屏

suntianwu vor 3 Jahren
Ursprung
Commit
415ba2d11f
1 geänderte Dateien mit 28 neuen und 14 gelöschten Zeilen
  1. 28 14
      src/main/java/com/care/bigscreen/controller/BigScreenController.java

+ 28 - 14
src/main/java/com/care/bigscreen/controller/BigScreenController.java

@@ -38,8 +38,10 @@ public class BigScreenController {
      */
      */
     @ApiOperation(value = "运营商大屏统计查询", notes = "运营商大屏统计查询")
     @ApiOperation(value = "运营商大屏统计查询", notes = "运营商大屏统计查询")
     @GetMapping("/selectBigScreenStatisticsByOp")
     @GetMapping("/selectBigScreenStatisticsByOp")
-
-    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOp() {
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息")
+    })
+    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOp(@RequestHeader("token") String token) {
         try {
         try {
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(null,null);
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(null,null);
             return Result.success(bigScreenStatisticsVO);
             return Result.success(bigScreenStatisticsVO);
@@ -56,10 +58,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStatisticsByOrg")
     @GetMapping("/selectBigScreenStatisticsByOrg")
     @ApiImplicitParams(
     @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)
             }
             }
     )
     )
-    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOrg(Long orgId) {
+    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByOrg(@RequestHeader("token") String token,Long orgId) {
         try {
         try {
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(null,orgId);
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(null,orgId);
             return Result.success(bigScreenStatisticsVO);
             return Result.success(bigScreenStatisticsVO);
@@ -76,10 +79,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStatisticsByStation")
     @GetMapping("/selectBigScreenStatisticsByStation")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
             }
             }
     )
     )
-    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByStation(Long stationId) {
+    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByStation(@RequestHeader("token") String token,Long stationId) {
         try {
         try {
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(stationId,null);
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatistics(stationId,null);
             return Result.success(bigScreenStatisticsVO);
             return Result.success(bigScreenStatisticsVO);
@@ -96,6 +100,7 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStatisticsByLongitudeLatitude")
     @GetMapping("/selectBigScreenStatisticsByLongitudeLatitude")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "longitudeLeftUp", value = "左上经度", dataTypeClass = String.class,required = true),
                     @ApiImplicitParam(name = "longitudeLeftUp", value = "左上经度", dataTypeClass = String.class,required = true),
                     @ApiImplicitParam(name = "latitudeLeftUp", 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 = "longitudeRightDown", value = "右下经度", dataTypeClass = String.class,required = true),
@@ -103,7 +108,7 @@ public class BigScreenController {
                     @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
                     @ApiImplicitParam(name = "orgId", value = "机构ID", dataTypeClass = Long.class,required = false)
             }
             }
     )
     )
-    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
+    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(@RequestHeader("token") String token,String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
         try {
         try {
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
             BigScreenStatisticsVO bigScreenStatisticsVO =  bigScreenService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
             return Result.success(bigScreenStatisticsVO);
             return Result.success(bigScreenStatisticsVO);
@@ -120,10 +125,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStationList")
     @GetMapping("/selectBigScreenStationList")
     @ApiImplicitParams(
     @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 = false)
             }
             }
     )
     )
-    public Result<List<BigScreenStationVO>> selectBigScreenStationList(Long orgId) {
+    public Result<List<BigScreenStationVO>> selectBigScreenStationList(@RequestHeader("token") String token,Long orgId) {
         try {
         try {
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationList(orgId);
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationList(orgId);
             return Result.success(bigScreenStationVOList);
             return Result.success(bigScreenStationVOList);
@@ -140,10 +146,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStationListOlderTop5")
     @GetMapping("/selectBigScreenStationListOlderTop5")
     @ApiImplicitParams(
     @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)
             }
             }
     )
     )
-    public Result<List<BigScreenStationVO>> selectBigScreenStationListOlderTop5(Long orgId) {
+    public Result<List<BigScreenStationVO>> selectBigScreenStationListOlderTop5(@RequestHeader("token") String token,Long orgId) {
         try {
         try {
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationListOlderTop5(orgId);
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationListOlderTop5(orgId);
             return Result.success(bigScreenStationVOList);
             return Result.success(bigScreenStationVOList);
@@ -160,10 +167,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenStationListEventTop5")
     @GetMapping("/selectBigScreenStationListEventTop5")
     @ApiImplicitParams(
     @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)
             }
             }
     )
     )
-    public Result<List<BigScreenStationVO>> selectBigScreenStationListEventTop5(Long orgId) {
+    public Result<List<BigScreenStationVO>> selectBigScreenStationListEventTop5(@RequestHeader("token") String token,Long orgId) {
         try {
         try {
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationListEventTop5(orgId);
             List<BigScreenStationVO> bigScreenStationVOList =  bigScreenService.selectBigScreenStationListEventTop5(orgId);
             return Result.success(bigScreenStationVOList);
             return Result.success(bigScreenStationVOList);
@@ -180,10 +188,11 @@ public class BigScreenController {
     @GetMapping("/selectStationBigScreenStatisticsByStation")
     @GetMapping("/selectStationBigScreenStatisticsByStation")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
             }
             }
     )
     )
-    public Result<BigScreenStationStatisticsVO> selectStationBigScreenStatisticsByStation(Long stationId) {
+    public Result<BigScreenStationStatisticsVO> selectStationBigScreenStatisticsByStation(@RequestHeader("token") String token,Long stationId) {
         try {
         try {
             BigScreenStationStatisticsVO bigScreenStationStatisticsVO =  bigScreenService.selectStationBigScreenStatisticsByStation(stationId);
             BigScreenStationStatisticsVO bigScreenStationStatisticsVO =  bigScreenService.selectStationBigScreenStatisticsByStation(stationId);
             return Result.success(bigScreenStationStatisticsVO);
             return Result.success(bigScreenStationStatisticsVO);
@@ -201,11 +210,12 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenAlarmOlderList")
     @GetMapping("/selectBigScreenAlarmOlderList")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true),
                     @ApiImplicitParam(name = "olderName", value = "被监护人姓名", dataTypeClass = String.class,required = false)
                     @ApiImplicitParam(name = "olderName", value = "被监护人姓名", dataTypeClass = String.class,required = false)
             }
             }
     )
     )
-    public Result<List<BigScreenAlarmOlderVO>> selectBigScreenAlarmOlderList(Long stationId,String olderName) {
+    public Result<List<BigScreenAlarmOlderVO>> selectBigScreenAlarmOlderList(@RequestHeader("token") String token,Long stationId,String olderName) {
         try {
         try {
             List<BigScreenAlarmOlderVO> bigScreenAlarmOlderVOList =  bigScreenService.selectBigScreenAlarmOlderList(stationId,olderName);
             List<BigScreenAlarmOlderVO> bigScreenAlarmOlderVOList =  bigScreenService.selectBigScreenAlarmOlderList(stationId,olderName);
             return Result.success(bigScreenAlarmOlderVOList);
             return Result.success(bigScreenAlarmOlderVOList);
@@ -223,10 +233,11 @@ public class BigScreenController {
     @GetMapping("/selectStationBigScreenOlderDetail")
     @GetMapping("/selectStationBigScreenOlderDetail")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "olderId", value = "被监护人ID", dataTypeClass = Long.class,required = true)
                     @ApiImplicitParam(name = "olderId", value = "被监护人ID", dataTypeClass = Long.class,required = true)
             }
             }
     )
     )
-    public Result<BigScreenOlderDetailVO> selectStationBigScreenOlderDetail(Long olderId) {
+    public Result<BigScreenOlderDetailVO> selectStationBigScreenOlderDetail(@RequestHeader("token") String token,Long olderId) {
         try {
         try {
             BigScreenOlderDetailVO bigScreenOlderDetailVO =  bigScreenService.selectStationBigScreenOlderDetail(olderId);
             BigScreenOlderDetailVO bigScreenOlderDetailVO =  bigScreenService.selectStationBigScreenOlderDetail(olderId);
             return Result.success(bigScreenOlderDetailVO);
             return Result.success(bigScreenOlderDetailVO);
@@ -243,10 +254,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenRtEventList")
     @GetMapping("/selectBigScreenRtEventList")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
             }
             }
     )
     )
-    public Result<List<BigScreenEventVO>> selectBigScreenRtEventList(Long stationId) {
+    public Result<List<BigScreenEventVO>> selectBigScreenRtEventList(@RequestHeader("token") String token,Long stationId) {
         try {
         try {
             List<BigScreenEventVO> bigScreenEventVOList =  bigScreenService.selectBigScreenRtEventList(stationId);
             List<BigScreenEventVO> bigScreenEventVOList =  bigScreenService.selectBigScreenRtEventList(stationId);
             return Result.success(bigScreenEventVOList);
             return Result.success(bigScreenEventVOList);
@@ -263,10 +275,11 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenHisEventListByPage")
     @GetMapping("/selectBigScreenHisEventListByPage")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true)
             }
             }
     )
     )
-    public PageResult<List<BigScreenEventVO>> selectBigScreenHisEventListByPage(Long stationId, PageResVO page) {
+    public PageResult<List<BigScreenEventVO>> selectBigScreenHisEventListByPage(@RequestHeader("token") String token,Long stationId, PageResVO page) {
         try {
         try {
             PageUtil<BigScreenEventVO> bigScreenEventVOListByPage =  bigScreenService.selectBigScreenHisEventListByPage(stationId,page);
             PageUtil<BigScreenEventVO> bigScreenEventVOListByPage =  bigScreenService.selectBigScreenHisEventListByPage(stationId,page);
             return  PageResult.success(
             return  PageResult.success(
@@ -287,11 +300,12 @@ public class BigScreenController {
     @GetMapping("/selectBigScreenOlderCardListByPage")
     @GetMapping("/selectBigScreenOlderCardListByPage")
     @ApiImplicitParams(
     @ApiImplicitParams(
             {
             {
+                    @ApiImplicitParam(paramType = "header", required = true, name = "token", dataType = "String", value = "token验证信息"),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true),
                     @ApiImplicitParam(name = "stationId", value = "站点ID", dataTypeClass = Long.class,required = true),
                     @ApiImplicitParam(name = "olderName", value = "被监护人姓名", dataTypeClass = String.class,required = false)
                     @ApiImplicitParam(name = "olderName", value = "被监护人姓名", dataTypeClass = String.class,required = false)
             }
             }
     )
     )
-    public PageResult<List<BigScreenOlderDetailVO>> selectBigScreenOlderCardListByPage(Long stationId,String olderName, PageResVO page) {
+    public PageResult<List<BigScreenOlderDetailVO>> selectBigScreenOlderCardListByPage(@RequestHeader("token") String token,Long stationId,String olderName, PageResVO page) {
         try {
         try {
             PageUtil<BigScreenOlderDetailVO> bigScreenOlderDetailVOList =  bigScreenService.selectBigScreenOlderCardListByPage(stationId,olderName,page);
             PageUtil<BigScreenOlderDetailVO> bigScreenOlderDetailVOList =  bigScreenService.selectBigScreenOlderCardListByPage(stationId,olderName,page);
             return  PageResult.success(
             return  PageResult.success(