| | |
| | | Integer orgId = Integer.parseInt(orgIdObj.toString());
|
| | | List<Integer> orgIds = orgMapper.selectLowerOrgIds(orgId);
|
| | | params.put("orgIds", orgIds);
|
| | | System.out.println(params);
|
| | | deviceList = deviceMapper.selectByMap(params);
|
| | | // loadDeviceState(deviceList);
|
| | | }
|
| | |
| | | if (tvoc==null){
|
| | | tvoc=0.0;
|
| | | }
|
| | | Double dir = (270.0 - windDir * Math.PI / 180.0);
|
| | | Double dir = (270.0 + windDir * Math.PI / 180.0);
|
| | |
|
| | | U = windSpeed * Math.cos(dir);
|
| | | V = windSpeed * Math.sin(dir);
|
| | |
| | | return list;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Device> getDeviceByCodeAndId(String code, String id) {
|
| | | return deviceMapper.getDeviceByCodeAndId(code,id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String byMacGetOrgId(String mac) {
|
| | | return deviceMapper.byMacGetOrgId(mac);
|
| | | }
|
| | |
|
| | | }
|