From 4760fa1898f0842609af31ad4bf069f60c03d5bb Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Fri, 29 Jul 2022 17:52:26 +0800 Subject: [PATCH] .. --- .../monitor/controller/Controller.java | 110 +++++------------- 1 file changed, 27 insertions(+), 83 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java b/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java index 7c1fde10..0ff053d5 100644 --- a/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java +++ b/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java @@ -1,5 +1,6 @@ package io.renren.modules.monitor.controller; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Lists; import io.renren.modules.monitor.dto.*; @@ -151,9 +152,7 @@ public class Controller { List list = cameraChannelMapper.selectByChannelCode(channelCode); - Result success = Result.success(list); - - return success; + return Result.success(list); } @@ -170,9 +169,7 @@ public class Controller { List labels = cameraChannelMapper.selectByChannelName(channelName); - Result success = Result.success(labels); - - return success; + return Result.success(labels); } /** @@ -254,8 +251,7 @@ public class Controller { public Result selectAllByGps(Double gpsX,Double gpsY,Integer radius){ double[] around = LongLatUtil.getAround(gpsX, gpsY, radius); List c = cameraChannelMapper.selectAllByGps(around[0], around[2], around[1], around[3]); - Result success = Result.success(c); - return success; + return Result.success(c); } /** @@ -268,9 +264,7 @@ public class Controller { List