| | |
| | | // ); |
| | | |
| | | |
| | | public String getSite$() { |
| | | if (this.site == null) {return null;} |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = service.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, this.site)); |
| | | if (Objects.isNull(station)) {return null;} |
| | | return station.getStationName(); |
| | | } |
| | | |
| | | public String getDeviceSite$() { |
| | | if (this.deviceSite == null) {return null;} |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = service.getById(this.deviceSite); |
| | | if (Objects.isNull(station)) {return null;} |
| | | return station.getStationName(); |
| | | } |
| | | // public String getSite$() { |
| | | // if (this.site == null) {return null;} |
| | | // BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | // BasStation station = service.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, this.site)); |
| | | // if (Objects.isNull(station)) {return null;} |
| | | // return station.getStationName(); |
| | | // } |
| | | // |
| | | // public String getDeviceSite$() { |
| | | // if (this.deviceSite == null) {return null;} |
| | | // BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | // BasStation station = service.getById(this.deviceSite); |
| | | // if (Objects.isNull(station)) {return null;} |
| | | // return station.getStationName(); |
| | | // } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |