干燥机配套车间生产管理系统/云平台服务端
bsw215583320
2024-11-01 e2a02c09b9d087a49ae5dd9f70856967390237de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package org.jeecg.modules.dry.entity;
 
import java.io.Serializable;
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * @Description: 干燥配方
 * @Author: jeecg-boot
 * @Date:   2023-05-16
 * @Version: V1.0
 */
@Data
@TableName("dry_herb_formula")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="dry_herb_formula对象", description="干燥配方")
public class DryHerbFormula implements Serializable {
    private static final long serialVersionUID = 1L;
 
    /**id*/
    @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_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 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 = "目标含水率")
    private Double target;
    /**投料量*/
    @Excel(name = "投料量", width = 15)
    @ApiModelProperty(value = "投料量")
    private Integer feed;
    /**预计干燥时间*/
    @Excel(name = "预计干燥时间", width = 15)
    @ApiModelProperty(value = "预计干燥时间")
    private Integer et;
    /**热风温度*/
    @Excel(name = "热风温度", width = 15)
    @ApiModelProperty(value = "热风温度")
    private Double windTemp;
    /**初始风机频率*/
    @Excel(name = "初始风机频率", width = 15)
    @ApiModelProperty(value = "初始风机频率")
    private Integer fanSpeed;
    /**环境温度*/
    @Excel(name = "环境温度", width = 15)
    @ApiModelProperty(value = "环境温度")
    private Double envTemp;
    /**环境湿度*/
    @Excel(name = "环境湿度", width = 15)
    @ApiModelProperty(value = "环境湿度")
    private Double envHum;
    /**荡料延时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)
    @ApiModelProperty(value = "含水率补偿")
    private Double moisOffset;
 
    /**冷风时长*/
    @Excel(name = "冷风时长", width = 15)
    @ApiModelProperty(value = "冷风时长")
    private Integer coolingDuration;
    /**租户id*/
    @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @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();
    }
}