zhou zhou
2 天以前 1dcfa3702505f0c431757312b5304531029f90f6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasStation.java
@@ -7,6 +7,7 @@
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.vincent.rsf.server.manager.enums.StationTypeEnum;
import com.vincent.rsf.server.manager.service.WarehouseAreasService;
import com.vincent.rsf.server.system.entity.DictData;
@@ -26,7 +27,7 @@
import java.util.stream.Collectors;
@Data
@TableName("man_bas_station")
@TableName(value = "man_bas_station", autoResultMap = true)
public class BasStation implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -87,7 +88,8 @@
     * 可跨区区域id
     */
    @ApiModelProperty(value = "可跨区区域id")
    private String crossZoneArea;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Integer> crossZoneArea;
    /**
     * 是否wcs站点
@@ -105,13 +107,14 @@
     * 容器类型
     */
    @ApiModelProperty(value = "容器类型")
    private String containerType;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Integer> containerType;
    /**
     * 条码
     */
    @ApiModelProperty(value = "条码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String barcode;
    /**
@@ -136,6 +139,9 @@
    @ApiModelProperty(value = "创建人")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 创建时间
     */
@@ -148,6 +154,9 @@
     */
    @ApiModelProperty(value = "更新人")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    /**
     * 更新时间
@@ -171,6 +180,41 @@
    @TableField(exist = false)
    private List<Long> containerTypes;
    /**
     * 别名
     */
    @ApiModelProperty(value = "别名")
    @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() {
    }
@@ -181,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, longs1));
        List<Long> longs = dictData.stream().map(DictData::getId).collect(Collectors.toList());
        return longs;
        return this.containerTypes$;
    }
    public String getCreateTime$() {
@@ -210,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() {
@@ -266,4 +263,6 @@
                return null;
        }
    }
}