| | |
| | | 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; |
| | |
| | | @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 = "目标含水率") |
| | |
| | | @Excel(name = "热风温度", width = 15) |
| | | @ApiModelProperty(value = "热风温度") |
| | | private Double windTemp; |
| | | /**初始风机频率*/ |
| | | @Excel(name = "初始风机频率", width = 15) |
| | | @ApiModelProperty(value = "初始风机频率") |
| | | private Integer fanSpeed; |
| | | /**环境温度*/ |
| | | @Excel(name = "环境温度", width = 15) |
| | | @ApiModelProperty(value = "环境温度") |
| | |
| | | @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") |
| | |
| | | @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(); |
| | | } |
| | | } |