zhou zhou
2 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java
@@ -89,7 +89,7 @@
     */
    @ApiModelProperty(value = "可跨区区域id")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> crossZoneArea;
    private List<Integer> crossZoneArea;
    /**
     * 是否wcs站点
@@ -108,13 +108,13 @@
     */
    @ApiModelProperty(value = "容器类型")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> containerType;
    private List<Integer> containerType;
    /**
     * 条码
     */
    @ApiModelProperty(value = "条码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String barcode;
    /**
@@ -139,6 +139,9 @@
    @ApiModelProperty(value = "创建人")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 创建时间
     */
@@ -151,6 +154,9 @@
     */
    @ApiModelProperty(value = "更新人")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    /**
     * 更新时间
@@ -181,6 +187,34 @@
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> stationAlias;
    /**
     * 仓库编码
     */
    @ApiModelProperty(value = "仓库编码")
    private String productionLineCode;
    /**
     * 仓库名称
     */
    @ApiModelProperty(value = "仓库名称")
    private String productionLineName;
    /**
     * 仓库名称
     */
    @ApiModelProperty(value = "仓库名称")
    private String stationTypeCode;
    @TableField(exist = false)
    private List<Long> containerTypes$;
    @TableField(exist = false)
    private String useStatus$;
    @TableField(exist = false)
    private String area$;
    public BasStation() {
    }
@@ -191,18 +225,7 @@
    }
    public List<Long> getContainerTypes$() {
        if (Cools.isEmpty(this.containerType)) {
            return new ArrayList<>();
        }
        DictDataService service = SpringUtils.getBean(DictDataService.class);
//        Object parse = JSONArray.parse(this.getContainerType());
//        List<Long> longs1 = JSONObject.parseArray(parse.toString(), Long.class);
        List<DictData> dictData = service.list(new LambdaQueryWrapper<DictData>()
                .eq(DictData::getDictTypeCode, "sys_container_type")
                .in(DictData::getValue, this.getContainerType()));
        List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList());
        return longs;
        return this.containerTypes$;
    }
    public String getCreateTime$() {
@@ -220,47 +243,11 @@
    }
    public String getUseStatus$() {
        if (Cools.isEmpty(this.useStatus)) {
            return "";
        }
        DictDataService service = SpringUtils.getBean(DictDataService.class);
        DictData dictData = service.getOne(new LambdaQueryWrapper<DictData>()
                .eq(DictData::getDictTypeCode, "sys_sta_use_stas")
                .eq(DictData::getValue, this.useStatus));
        if (!Cools.isEmpty(dictData)) {
            return String.valueOf(dictData.getLabel());
        }
        return "";
    }
    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 getUpdateBy$() {
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.updateBy);
        if (!Cools.isEmpty(user)) {
            return String.valueOf(user.getNickname());
        }
        return null;
        return this.useStatus$;
    }
    public String getArea$() {
        if (null == this.area) {
            return null;
        }
        WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class);
        WarehouseAreas warehouseAreas = service.getById(this.area);
        if (!Cools.isEmpty(warehouseAreas)) {
            return String.valueOf(warehouseAreas.getName());
        }
        return null;
        return this.area$;
    }
    public Boolean getStatusBool() {
@@ -276,4 +263,6 @@
                return null;
        }
    }
}