干燥机配套车间生产管理系统/云平台服务端
zhuguifei
2024-11-29 339515558253d776769dc2e2560bbb4a0450c989
jeecg-module-dry/jeecg-module-dry-api/src/main/java/org/jeecg/modules/dry/entity/DryHerbFormula.java
old mode 100644 new mode 100755
@@ -1,15 +1,14 @@
package org.jeecg.modules.dry.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.dry.vo.RealTimeDataVo;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
@@ -36,20 +35,32 @@
   @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**配方编号*/
    @Excel(name = "配方编号", width = 15)
    @ApiModelProperty(value = "配方编号")
    private String code;
   /**药材id*/
   @Excel(name = "药材id", width = 15, dictTable = "dry_herb", dicText = "name", dicCode = "id")
   @Dict(dictTable = "dry_herb", dicText = "name", dicCode = "id")
   @Excel(name = "药材id", width = 15, dictTable = "dry_herb_info", dicText = "name", dicCode = "id")
   @Dict(dictTable = "dry_herb_info", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "药材id")
    private String herbId;
   /**药材名称*/
   @Excel(name = "药材名称", width = 15)
    @ApiModelProperty(value = "药材名称")
    private String herbName;
   /**配方名称*/
   @Excel(name = "配方名称", width = 15)
    @ApiModelProperty(value = "配方名称")
    private String name;
    /**药材拼音*/
    @Excel(name = "药材拼音", width = 15)
    @ApiModelProperty(value = "药材拼音")
    private String pinyin;
   /**设备类型*/
   @Excel(name = "设备类型", width = 15, dictTable = "dry_eqp_type", dicText = "name", dicCode = "id")
   @Dict(dictTable = "dry_eqp_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "设备类型")
    private String eqpType;
    /**配方分类*/
    @Excel(name = "配方分类", width = 15)
    @ApiModelProperty(value = "配方分类")
    private String category;
   /**目标含水率*/
   @Excel(name = "目标含水率", width = 15)
    @ApiModelProperty(value = "目标含水率")
@@ -66,6 +77,10 @@
   @Excel(name = "热风温度", width = 15)
    @ApiModelProperty(value = "热风温度")
    private Double windTemp;
    /**初始风机频率*/
    @Excel(name = "初始风机频率", width = 15)
    @ApiModelProperty(value = "初始风机频率")
    private Integer fanSpeed;
   /**环境温度*/
   @Excel(name = "环境温度", width = 15)
    @ApiModelProperty(value = "环境温度")
@@ -82,6 +97,15 @@
   @Excel(name = "翻料次数", width = 15)
    @ApiModelProperty(value = "翻料次数")
    private Integer turn;
    /**含水率补偿*/
    @Excel(name = "含水率补偿", width = 15)
    @ApiModelProperty(value = "含水率补偿")
    private Double moisOffset;
    /**冷风时长*/
    @Excel(name = "冷风时长", width = 15)
    @ApiModelProperty(value = "冷风时长")
    private Integer coolingDuration;
   /**租户id*/
   @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
@@ -102,4 +126,19 @@
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    public DryHerbFormula(){}
    public DryHerbFormula(RealTimeDataVo realTimeDataVo) {
        this.code = realTimeDataVo.getIndex() + "";
        this.delay = realTimeDataVo.getDelay();
        this.name = realTimeDataVo.getName();
        this.delay = realTimeDataVo.getDelay();
        this.turn = realTimeDataVo.getTurntime();
        this.feed = realTimeDataVo.getWeight1();
        this.target = realTimeDataVo.getMoisture3();
        this.windTemp = realTimeDataVo.getTemp3();
        this.et = realTimeDataVo.getTime1();
        this.tenantId = realTimeDataVo.getTenantid();
    }
}