浏览代码

大屏统计

suntianwu 3 年之前
父节点
当前提交
5d3bc941b2

+ 4 - 3
src/main/java/com/care/bigscreen/controller/StStationController.java

@@ -95,12 +95,13 @@ public class StStationController {
                     @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 = "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) {
+    public Result<BigScreenStatisticsVO> selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp, String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
         try {
-            BigScreenStatisticsVO bigScreenStatisticsVO =  stStationService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown);
+            BigScreenStatisticsVO bigScreenStatisticsVO =  stStationService.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
             return Result.success(bigScreenStatisticsVO);
         } catch (Exception e) {
             log.error("站点统计查询出现异常",e);

+ 1 - 1
src/main/java/com/care/bigscreen/mapper/StStationMapper.java

@@ -27,6 +27,6 @@ public interface StStationMapper extends BaseMapper<StStation> {
      * 大屏统计查询
      * @return 根据经纬度范围搜索符合条件的大屏统计数据
      */
-    BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(@Param("longitudeLeftUp") String longitudeLeftUp,@Param("latitudeLeftUp") String latitudeLeftUp,@Param("longitudeRightDown") String longitudeRightDown,@Param("latitudeRightDown")String latitudeRightDown);
+    BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(@Param("longitudeLeftUp") String longitudeLeftUp,@Param("latitudeLeftUp") String latitudeLeftUp,@Param("longitudeRightDown") String longitudeRightDown,@Param("latitudeRightDown")String latitudeRightDown,@Param("orgId") Long orgId);
 
 }

+ 1 - 1
src/main/java/com/care/bigscreen/service/StStationService.java

@@ -21,6 +21,6 @@ public interface StStationService {
      * 大屏统计查询
      * @return 根据经纬度范围搜索符合条件的大屏统计数据
      */
-    BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp,String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown);
+    BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp,String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId);
 
 }

+ 2 - 2
src/main/java/com/care/bigscreen/service/impl/StStationServiceImpl.java

@@ -36,7 +36,7 @@ public class StStationServiceImpl implements StStationService {
      * @return 根据经纬度范围搜索符合条件的大屏统计数据
      */
     @Override
-    public BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp,String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown) {
-        return stStationMapper.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown);
+    public BigScreenStatisticsVO selectBigScreenStatisticsByLongitudeLatitude(String longitudeLeftUp,String latitudeLeftUp,String longitudeRightDown,String latitudeRightDown,Long orgId) {
+        return stStationMapper.selectBigScreenStatisticsByLongitudeLatitude(longitudeLeftUp,latitudeLeftUp,longitudeRightDown,latitudeRightDown,orgId);
     }
 }