| | |
| | | */
|
| | | @Override
|
| | | public List<Device> query(Map<String, Object> params) {
|
| | | List<Integer> dv = deviceMapper.getHasWindDirAndWindSpeedDeviceVersion();
|
| | | Object orgIdObj = params.get("orgId");
|
| | | List<Device> deviceList = null;
|
| | | if (orgIdObj != null) {
|
| | |
| | | deviceList = deviceMapper.selectByMap(params);
|
| | | // loadDeviceState(deviceList);
|
| | | }
|
| | | for(Device d:deviceList){
|
| | | if(dv.contains(d.getDeviceVersionId())){
|
| | | d.setHasWindInfo(true);
|
| | | }else{
|
| | | d.setHasWindInfo(false);
|
| | | }
|
| | | }
|
| | | return deviceList;
|
| | | }
|
| | |
|
| | |
| | | public List<String> getMacsByOrganizationId(List<Object> organizationIdList) {
|
| | | return deviceMapper.getMacsByOrganizationId(organizationIdList);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Device> getDeviceById1(int id) {
|
| | | return deviceMapper.getDeviceById1(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Device> getDeviceById2(int id) {
|
| | | return deviceMapper.getDeviceById2(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Device> getDeviceById3(int id) {
|
| | | return deviceMapper.getDeviceById3(id);
|
| | | }
|
| | | }
|