suntianwu 3 vuotta sitten
vanhempi
commit
2558d655a9

+ 15 - 0
src/main/java/com/care/bigscreen/mapper/StOrganizationMapper.java

@@ -0,0 +1,15 @@
+package com.care.bigscreen.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.care.bigscreen.entity.StOrganization;
+
+
+/**
+ * 机构统计表(st_organization)表数据库访问层
+ *
+ * @author makejava
+ * @since 2021-05-21 00:08:32
+ */
+public interface StOrganizationMapper extends BaseMapper<StOrganization> {
+
+}

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

@@ -0,0 +1,15 @@
+package com.care.bigscreen.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.care.bigscreen.entity.StStation;
+
+
+/**
+ * 站点统计表(st_station)表数据库访问层
+ *
+ * @author makejava
+ * @since 2021-05-21 00:08:32
+ */
+public interface StStationMapper extends BaseMapper<StStation> {
+
+}

+ 3 - 3
src/main/java/com/care/bigscreen/service/impl/BigScreenServiceImpl.java

@@ -5,7 +5,7 @@ import com.care.bigscreen.mapper.BigSreenMapper;
 import com.care.bigscreen.service.BigScreenService;
 import com.care.bigscreen.service.BigScreenService;
 import com.care.bigscreen.vo.*;
 import com.care.bigscreen.vo.*;
 import com.care.bigscreen.websocket.BigScreenWebSocketEndpoint;
 import com.care.bigscreen.websocket.BigScreenWebSocketEndpoint;
-import com.care.common.mapper.CareStationMapper;
+import com.care.common.service.CareStationService;
 import com.care.common.vo.PageResVO;
 import com.care.common.vo.PageResVO;
 import com.care.common.util.PageUtil;
 import com.care.common.util.PageUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -26,7 +26,7 @@ public class BigScreenServiceImpl implements BigScreenService {
     @Autowired
     @Autowired
     private BigSreenMapper bigSreenMapper;
     private BigSreenMapper bigSreenMapper;
     @Autowired
     @Autowired
-    private CareStationMapper careStationMapper;
+    private CareStationService careStationService;
     /**
     /**
      * 大屏统计查询
      * 大屏统计查询
      * @return 搜索符合条件的大屏统计数据
      * @return 搜索符合条件的大屏统计数据
@@ -40,7 +40,7 @@ public class BigScreenServiceImpl implements BigScreenService {
         } else if(stationId == null && orgId != null) { //机构大屏
         } else if(stationId == null && orgId != null) { //机构大屏
             bigScreenStatisticsVO2 =  bigSreenMapper.selectBigScreenOrgStatistics(orgId);
             bigScreenStatisticsVO2 =  bigSreenMapper.selectBigScreenOrgStatistics(orgId);
         } else { //站点查询
         } else { //站点查询
-            bigScreenStatisticsVO2 =  bigSreenMapper.selectBigScreenOrgStatistics(careStationMapper.selectById(stationId).getOrgId());
+            bigScreenStatisticsVO2 =  bigSreenMapper.selectBigScreenOrgStatistics(careStationService.getById(stationId).getOrgId());
         }
         }
 
 
         bigScreenStatisticsVO.setSeatsAmount(bigScreenStatisticsVO2.getSeatsAmount());
         bigScreenStatisticsVO.setSeatsAmount(bigScreenStatisticsVO2.getSeatsAmount());