tuqin
6 天以前 c35bd84886fb0c4e4ee0ffeeb3819a8a8df532b5
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package cn.iocoder.yudao.module.mes.controller.admin.em.statistics.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
@Schema(description = "管理后台 - MES 能耗总览 Response VO")
@Data
public class MesEmOverviewRespVO {
 
    @Schema(description = "综合能耗(吨标煤)", example = "12.34")
    private BigDecimal totalTce;
 
    @Schema(description = "总费用(元)", example = "123456.78")
    private BigDecimal totalCost;
 
    @Schema(description = "计量点数量", example = "20")
    private Integer meterCount;
 
    @Schema(description = "未处理预警数量", example = "3")
    private Integer pendingAlertCount;
 
    @Schema(description = "能源类型统计")
    private List<TypeStat> typeStats;
 
    @Schema(description = "车间能耗统计")
    private List<WorkshopStat> workshopStats;
 
    @Schema(description = "能耗趋势")
    private List<TrendPoint> trend;
 
    @Schema(description = "重点用能设备排行")
    private List<MeterStat> topMeters;
 
    @Schema(description = "最近预警")
    private List<RecentAlert> recentAlerts;
 
    @Data
    public static class TypeStat {
 
        @Schema(description = "能源类型")
        private Integer energyType;
 
        @Schema(description = "能源类型名称")
        private String energyTypeName;
 
        @Schema(description = "用量")
        private BigDecimal usage;
 
        @Schema(description = "计量单位")
        private String unit;
 
        @Schema(description = "费用")
        private BigDecimal cost;
 
        @Schema(description = "折标煤(吨)")
        private BigDecimal tce;
 
    }
 
    @Data
    public static class WorkshopStat {
 
        @Schema(description = "车间编号")
        private Long workshopId;
 
        @Schema(description = "车间名称")
        private String workshopName;
 
        @Schema(description = "折标煤(吨)")
        private BigDecimal tce;
 
        @Schema(description = "费用")
        private BigDecimal cost;
 
    }
 
    @Data
    public static class TrendPoint {
 
        @Schema(description = "日期")
        private String date;
 
        @Schema(description = "综合能耗(吨标煤)")
        private BigDecimal tce;
 
        @Schema(description = "费用")
        private BigDecimal cost;
 
        @Schema(description = "用电量")
        private BigDecimal electricity;
 
        @Schema(description = "用水量")
        private BigDecimal water;
 
        @Schema(description = "燃油用量")
        private BigDecimal fuel;
 
        @Schema(description = "天然气用量")
        private BigDecimal gas;
 
    }
 
    @Data
    public static class MeterStat {
 
        @Schema(description = "计量点编号")
        private Long meterId;
 
        @Schema(description = "计量点名称")
        private String meterName;
 
        @Schema(description = "能源类型")
        private Integer energyType;
 
        @Schema(description = "能源类型名称")
        private String energyTypeName;
 
        @Schema(description = "用量")
        private BigDecimal usage;
 
        @Schema(description = "计量单位")
        private String unit;
 
        @Schema(description = "费用")
        private BigDecimal cost;
 
        @Schema(description = "折标煤(吨)")
        private BigDecimal tce;
 
    }
 
    @Data
    public static class RecentAlert {
 
        @Schema(description = "预警编号")
        private Long id;
 
        @Schema(description = "预警内容")
        private String content;
 
        @Schema(description = "预警级别")
        private Integer alertLevel;
 
        @Schema(description = "预警级别名称")
        private String alertLevelName;
 
        @Schema(description = "预警日期")
        private String alertDate;
 
        @Schema(description = "处理状态")
        private Integer status;
 
        @Schema(description = "处理状态名称")
        private String statusName;
 
    }
 
}