干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2023-06-07 5bcc4b8737ba70cc672fd5a1c64496a94c6ab7bd
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
package org.jeecg.modules.dry.vo;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.util.Date;
 
@Data
@ToString
@NoArgsConstructor
public class DryOrderTrendVo {
 
    /**id*/
    @ApiModelProperty(value = "id")
    private String id;
    /**工单*/
    @ApiModelProperty(value = "工单号")
    private String orderId;
    /**含水率*/
    @ApiModelProperty(value = "含水率", example = "33")
    private Double moisture;
    /**温度*/
    @ApiModelProperty(value = "风机温度", example = "70")
    private Double fanTemp;
    /**风箱温度*/
    @ApiModelProperty(value = "风箱温度")
    private Double bellowsTemp;
 
    /**总时间*/
    @ApiModelProperty(value = "总时间")
    private Integer totalTime;
    /**干燥时间s*/
    @ApiModelProperty(value = "干燥时间s")
    private Integer dryTime;
    /**翻料次数*/
    @ApiModelProperty(value = "翻料次数")
    private Integer turn;
    /**风机频率*/
    @ApiModelProperty(value = "风机频率")
    private Double fanFrequency;
    /**实时重量*/
    @ApiModelProperty(value = "实时重量")
    private Double weight;
    /**热风1/冷风0*/
    @ApiModelProperty(value = "热风1/冷风0")
    private Integer wind;
    /**时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
    @ApiModelProperty(value = "时间", example = "2023-03-13 12:00:00")
    private Date tim;
    /**租户id*/
    @ApiModelProperty(value = "租户id", example = "1000")
    private Integer tenantId;
 
 
    /**蒸汽消耗*/
    @ApiModelProperty(value = "蒸汽消耗")
    private Double steam;
 
    /**电能消耗*/
    @ApiModelProperty(value = "电能消耗")
    private Double electric;
 
 
    public DryOrderTrendVo(RealTimeDataVo realTimeDataVo) {
        this.fanFrequency = realTimeDataVo.getFanfrq();
        this.weight = realTimeDataVo.getWeight3();
        this.moisture = realTimeDataVo.getMoisture2();
        this.fanTemp = realTimeDataVo.getTemp1();
        this.bellowsTemp = realTimeDataVo.getTemp2();
        this.dryTime = realTimeDataVo.getTime2();
        this.wind = realTimeDataVo.getWind()?1:0;
        this.turn = realTimeDataVo.getTurntime();
        this.totalTime = realTimeDataVo.getTime3();
        this.orderId = realTimeDataVo.getOrderId();
        this.tim = new Date();
    }
}