zhou zhou
1 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/DeviceSite.java
@@ -167,6 +167,13 @@
    @ApiModelProperty("目标库区")
    private Long areaIdEnd;
    @TableField(exist = false)
    private String type$;
    @TableField(exist = false)
    private String device$;
    public DeviceSite() {}
@@ -209,58 +216,13 @@
//    );
//    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; }
        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, ",");
        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$(){