czt
2026-02-11 f68f5bf6ae56c18561eb8ccba9fb9693f128551c
fzzy-igdss-core/src/main/java/com/fzzy/igds/domain/Depot.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bstek.dorado.annotation.PropertyDef;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fzzy.igds.constant.*;
import lombok.Data;
@@ -97,6 +98,18 @@
    @TableField("bulk_weight")
    private Double bulkWeight;
    @Column(name = "length", columnDefinition = "decimal(20,2) COMMENT '长/直径(单位:米)'")
    @TableField("length")
    private Double length = 0.0;
    @Column(name = "width", columnDefinition = "decimal(20,2) COMMENT '宽(单位:米)'")
    @TableField("width")
    private Double width = 0.0;
    @Column(name = "height", columnDefinition = "decimal(20,2) COMMENT '高度(单位:米)'")
    @TableField("height")
    private Double height = 0.0;
    @Column(name = "store_keeper", columnDefinition = "varchar(40) COMMENT '保管员'")
    @TableField("store_keeper")
    private String storeKeeper;
@@ -128,4 +141,61 @@
    @TableField("pledge_bank")
    private String pledgeBank;
    // ------------其他属性信息------------//
    @Transient
    @TableField(exist = false)
    private String foodVarietyName;
    @Transient
    @TableField(exist = false)
    private String foodTypeName;
    @Transient
    @TableField(exist = false)
    private String depotTypeName;
    @Transient
    @TableField(exist = false)
    private String depotStatusName;
    @Transient
    @TableField(exist = false)
    private String foodLevelName;
    public String getFoodLevelName() {
        if (null != this.foodLevel) {
            return FoodLevel.getMsg(this.foodLevel);
        }
        return null;
    }
    public String getFoodVarietyName() {
        if (null != this.foodVariety) {
            return FoodVariety.getMsg(this.foodVariety);
        }
        return null;
    }
    public String getFoodTypeName() {
        if (null != this.foodType) {
            return FoodType.getMsg(this.foodType);
        }
        return null;
    }
    public String getDepotTypeName() {
        if (null != this.depotType) {
            return DepotType.getMsg(this.depotType);
        }
        return null;
    }
    public String getDepotStatusName() {
        if (null != this.depotStatus) {
            return DepotStatus.getMsg(this.depotStatus);
        }
        return null;
    }
}