干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2025-11-28 567096dae7f467d04883f11b17f667b6cef5f536
jeecg-module-dry/jeecg-module-dry-api/src/main/java/org/jeecg/modules/dry/entity/DryHerbFormula.java
@@ -8,6 +8,8 @@
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.dry.Bo.HerbFormulaBo;
import org.jeecg.modules.dry.vo.HerbFormulaVo;
import org.jeecg.modules.dry.vo.RealTimeDataVo;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
@@ -36,20 +38,24 @@
    @ApiModelProperty(value = "id")
    private String id;
    /**配方编号*/
    @Excel(name = "配方编号", width = 15)
    @ApiModelProperty(value = "配方编号")
    private String code;
   /**药材id*/
   @Excel(name = "药材id", width = 15, dictTable = "dry_herb_info", dicText = "name", dicCode = "id")
   @Excel(name = "药材", width = 15, dictTable = "dry_herb_info", dicText = "name", dicCode = "id")
   @Dict(dictTable = "dry_herb_info", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "药材id")
    @ApiModelProperty(value = "药材")
    private String herbId;
   /**配方名称*/
   @Excel(name = "配方名称", width = 15)
    @ApiModelProperty(value = "配方名称")
    private String name;
    /**药材拼音*/
    @Excel(name = "药材拼音", width = 15)
    /**缩写*/
    @Excel(name = "缩写", width = 15)
    @ApiModelProperty(value = "缩写")
    private String abbr;
   /**药材拼音*/
    @ApiModelProperty(value = "药材拼音")
    private String pinyin;
   /**设备类型*/
@@ -57,10 +63,22 @@
   @Dict(dictTable = "dry_eqp_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "设备类型")
    private String eqpType;
    /**特种物料*/
    @Excel(name = "特种物料", width = 15)
    @ApiModelProperty(value = "特种物料")
    private String special;
    /**轻质物料*/
    @Excel(name = "轻质物料", width = 15)
    @ApiModelProperty(value = "轻质物料")
    private String light;
    /**配方分类*/
    @Excel(name = "配方分类", width = 15)
//    @Excel(name = "配方分类", width = 15)
    @ApiModelProperty(value = "配方分类")
    private String category;
    /**初始含水率*/
    @Excel(name = "初始含水率", width = 15)
    @ApiModelProperty(value = "初始含水率")
    private Double initial;
   /**目标含水率*/
   @Excel(name = "目标含水率", width = 15)
    @ApiModelProperty(value = "目标含水率")
@@ -82,23 +100,27 @@
    @ApiModelProperty(value = "初始风机频率")
    private Integer fanSpeed;
   /**环境温度*/
   @Excel(name = "环境温度", width = 15)
    @ApiModelProperty(value = "环境温度")
    private Double envTemp;
   /**环境湿度*/
   @Excel(name = "环境湿度", width = 15)
    @ApiModelProperty(value = "环境湿度")
    private Double envHum;
    /**翻料策略*/
    @Excel(name = "翻料策略", width = 15)
    @ApiModelProperty(value = "翻料策略")
    private String strategy;
   /**荡料延时ms*/
   @Excel(name = "荡料延时ms", width = 15)
    @ApiModelProperty(value = "荡料延时ms")
    private Integer delay;
   /**翻料次数*/
   @Excel(name = "翻料次数", width = 15)
    @ApiModelProperty(value = "翻料次数")
    private Integer turn;
    /**含水率补偿*/
    @Excel(name = "含水率补偿", width = 15)
//    @Excel(name = "含水率补偿", width = 15)
    @ApiModelProperty(value = "含水率补偿")
    private Double moisOffset;
@@ -106,8 +128,14 @@
    @Excel(name = "冷风时长", width = 15)
    @ApiModelProperty(value = "冷风时长")
    private Integer coolingDuration;
    /**是否启用*/
    @Excel(name = "是否启用", width = 15)
    @ApiModelProperty(value = "是否启用")
    private String enabled;
   /**租户id*/
   @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
   /**创建人*/
@@ -141,4 +169,22 @@
        this.et = realTimeDataVo.getTime1();
        this.tenantId = realTimeDataVo.getTenantid();
    }
    public DryHerbFormula(HerbFormulaBo formulaBo) {
        this.eqpType = formulaBo.getEqpType();
        this.name = formulaBo.getName();
        this.abbr = formulaBo.getAbbr();
        this.special = formulaBo.getSpecial();
        this.light = formulaBo.getLight();
        this.initial = formulaBo.getInitial();
        this.target = formulaBo.getTarget();
        this.feed = formulaBo.getFeed();
        this.et = formulaBo.getEt();
        this.windTemp = formulaBo.getWindTemp();
        this.fanSpeed = formulaBo.getFanSpeed();
        this.strategy = formulaBo.getStrategy();
        this.coolingDuration = formulaBo.getCoolingDuration();
        this.enabled = formulaBo.getEnabled();
    }
}