ソースを参照

七个数据隔离 水源,救援设备,起降点,气象站,放火站,防火队,森林管理 经纬度 用户不验证Email Unique
非必填 APP 七个基础数据

wangzhe 4 年 前
コミット
d8e5737c6d

+ 57 - 0
mybusiness/src/main/java/com/business/slfh/app/mainpage/service/impl/AppMainPageServiceImpl.java

@@ -17,12 +17,27 @@ import com.business.slfh.manager.cameramanager.domain.TResCamera;
 import com.business.slfh.manager.cameramanager.mapper.TResCameraMapper;
 import com.business.slfh.manager.firemanager.domain.TUEventFire;
 import com.business.slfh.manager.firemanager.mapper.TUEventFireMapper;
+import com.business.slfh.manager.forestdevicemanager.domain.TResForestdevice;
+import com.business.slfh.manager.forestdevicemanager.service.ITResForestdeviceService;
 import com.business.slfh.manager.levelmanager.domain.TResLevel;
 import com.business.slfh.manager.levelmanager.mapper.TResLevelMapper;
 import com.business.slfh.manager.othersmanager.mapper.TUEventOthersMapper;
+import com.business.slfh.manager.sourcewatermanager.domain.TResSourcewater;
+import com.business.slfh.manager.sourcewatermanager.service.ITResSourcewaterService;
+import com.business.slfh.manager.stationfiremanager.domain.TResStationfire;
+import com.business.slfh.manager.stationfiremanager.service.ITResStationfireService;
+import com.business.slfh.manager.stationforestmanager.domain.TResStationforest;
+import com.business.slfh.manager.stationforestmanager.service.ITResStationforestService;
+import com.business.slfh.manager.stationlandmanager.domain.TResStationland;
+import com.business.slfh.manager.stationlandmanager.service.ITResStationlandService;
+import com.business.slfh.manager.stationteammanager.domain.TResStationteam;
+import com.business.slfh.manager.stationteammanager.service.ITResStationteamService;
+import com.business.slfh.manager.stationweathermanager.domain.TResStationweather;
+import com.business.slfh.manager.stationweathermanager.service.ITResStationweatherService;
 import com.sooka.common.annotation.DataScope;
 import com.sooka.system.service.ISysConfigService;
 import com.sooka.system.service.ISysDictDataService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.RequestMapping;
 
@@ -58,7 +73,26 @@ public class AppMainPageServiceImpl extends AppBaseService implements AppMainPag
     @Resource
     ISysDictDataService iSysDictDataService;
 
+    @Resource
+    ITResSourcewaterService tResSourcewaterService;
+
+    @Resource
+    ITResForestdeviceService tResForestdeviceService;
+
+    @Resource
+    private ITResStationfireService tResStationfireService;
 
+    @Autowired
+    private ITResStationforestService tResStationforestService;
+
+    @Autowired
+    private ITResStationlandService tResStationlandService;
+
+    @Autowired
+    private ITResStationteamService tResStationteamService;
+
+    @Autowired
+    private ITResStationweatherService tResStationweatherService;
 
 
     @Override
@@ -72,6 +106,29 @@ public class AppMainPageServiceImpl extends AppBaseService implements AppMainPag
 
         AppDataModel appDataModel = getAppDataModel();
         try{
+            //获取七个基础数据
+            List<TResSourcewater> sourcewaterList = tResSourcewaterService.selectTResSourcewaterList(new TResSourcewater());
+            //水源
+            appDataModel.data.put("sourcewaterList",sourcewaterList);
+            List<TResForestdevice> forestdeviceList = tResForestdeviceService.selectTResForestdeviceList(new TResForestdevice());
+            //林场设备
+            appDataModel.data.put("forestdeviceList",forestdeviceList);
+            List<TResStationfire> stationfireList = tResStationfireService.selectTResStationfireList(new TResStationfire());
+            //防火检查站
+            appDataModel.data.put("stationfireList",stationfireList);
+            List<TResStationforest> stationforestList = tResStationforestService.selectTResStationforestList(new TResStationforest());
+            //森林
+            appDataModel.data.put("stationforestList",stationforestList);
+            List<TResStationland> stationlandList = tResStationlandService.selectTResStationlandList(new TResStationland());
+            //起降点
+            appDataModel.data.put("stationlandList",stationlandList);
+            List<TResStationteam> stationteamList = tResStationteamService.selectTResStationteamList(new TResStationteam());
+            //扑火队
+            appDataModel.data.put("stationteamList",stationteamList);
+            List<TResStationweather> stationweatherList = tResStationweatherService.selectTResStationweatherList(new TResStationweather());
+            //气象站
+            appDataModel.data.put("stationweatherList",stationweatherList);
+
             //获取当天天气、火险等级情况
             List levelinfo = appMainPageMapper.getLevelInfo();
             appDataModel.data.put("levelinfo",levelinfo);