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;
@@ -140,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;
    }
}