| | |
| | | DeviceAndWind getDeviceAndWindByMac(@Param("mac") String mac,@Param("time") String time,
|
| | | @Param("table") String table);
|
| | |
|
| | | List<DeviceAndWind> byMonitorIdGetDeviceAndWind(@Param("id") String id,@Param("time") String time,
|
| | | List<DeviceAndWind> byMonitorIdGetDeviceAndWind(@Param("id") int id,@Param("time") String time,
|
| | | @Param("table") String table);
|
| | |
|
| | | List<Device> getDeviceListByMonitorPointIds(List<Integer> list);
|
| | |
| | | @Override
|
| | | public List byMonitorIdGetDeviceAndWind(String id,String time,String tab) {
|
| | |
|
| | | List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(id,time,tab);
|
| | | List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(Integer.parseInt(id),time,tab);
|
| | | List loList=new ArrayList();
|
| | | List laList=new ArrayList();
|
| | | Double U=0.0;
|
| | | Double V=0.0;
|
| | | log.info("id="+id);
|
| | | log.info("time="+time);
|
| | | log.info("tab="+tab);
|
| | | log.info("deviceAndWinds="+deviceAndWinds);
|
| | | for (DeviceAndWind andWind : deviceAndWinds) {
|
| | | Double lo=andWind.getLongitude();
|
| | |
| | | and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id}) |
| | | </select> |
| | | |
| | | |
| | | <select id="getDevicesStateByRegion" resultType="map"> |
| | | SELECT |
| | | d.id deviceId,d.mac,d.state,d.name deviceName, |