| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.vincent.rsf.server.manager.service.BasStationService; |
| | | import com.vincent.rsf.server.manager.service.LocTypeService; |
| | | import com.vincent.rsf.server.system.constant.DictTypeCode; |
| | | import com.vincent.rsf.server.system.entity.DictData; |
| | |
| | | /** |
| | | * 设备编号 |
| | | */ |
| | | @ApiModelProperty(value= "设备编号") |
| | | @ApiModelProperty(value= "接驳位") |
| | | private String deviceCode; |
| | | |
| | | /** |
| | |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty(value= "巷道") |
| | | private Integer channel; |
| | | |
| | | |
| | | /** |
| | | * 租户 |
| | | */ |
| | |
| | | */ |
| | | @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; |
| | | @TableField(exist = false) |
| | | private String type$; |
| | | |
| | | @TableField(exist = false) |
| | | private String device$; |
| | | |
| | | |
| | | |
| | | public DeviceSite() {} |
| | | |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | String[] split = this.type.split(","); |
| | | List<String> asList = Arrays.asList(split); |
| | | if (asList.isEmpty()) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | List<DictData> dictDatas = dictDataService.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_TASK_TYPE) |
| | | .in(DictData::getValue, asList)); |
| | | if (dictDatas.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<String> strings = dictDatas.stream().map(DictData::getLabel).collect(Collectors.toList()); |
| | | |
| | | return StringUtils.join(strings, ","); |
| | | |
| | | public String getType$(){ |
| | | return this.type$; |
| | | } |
| | | |
| | | public String getDevice$(){ |
| | | if (null == this.device){ return null; } |
| | | String[] split = this.device.split(","); |
| | | List<String> asList = Arrays.asList(split); |
| | | if (asList.isEmpty()) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | List<DictData> dictDatas = dictDataService.list(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_DEVICE_TYPE) |
| | | .in(DictData::getValue, asList)); |
| | | if (dictDatas.isEmpty()) { |
| | | return null; |
| | | } |
| | | List<String> strings = dictDatas.stream().map(DictData::getLabel).collect(Collectors.toList()); |
| | | |
| | | return StringUtils.join(strings, ","); |
| | | return this.device$; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | |
| | | } |
| | | } |
| | | |
| | | 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$(){ |