| | |
| | | /** |
| | | * 设备编号 |
| | | */ |
| | | @ApiModelProperty(value= "设备编号") |
| | | @ApiModelProperty(value= "接驳位") |
| | | private String deviceCode; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | /** |
| | | * 修改时间 |
| | |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty("源库区") |
| | | private Long areaIdStart; |
| | | |
| | | @ApiModelProperty("目标库区") |
| | | private Long areaIdEnd; |
| | | |
| | | public DeviceSite() {} |
| | | |
| | |
| | | // ); |
| | | |
| | | |
| | | 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; } |
| | |
| | | } |
| | | } |
| | | |
| | | public String getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |