1
zyy
18 hours ago 9bb3ab4a3fb0b1d20dcc87979a19ca9625a4bfc8
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
package com.yami.trading.bean.miner;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.trading.common.domain.UUIDEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
 
import java.util.Comparator;
 
/**
 * 矿机
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_miner")
public class Miner extends UUIDEntity implements Comparator<Miner> {
 
    private static final long serialVersionUID = 1639941028310043811L;
 
    /**
     * 矿机名称(简体中文)
     */
    private String name;
 
    /**
     * 矿机名称(英文)
     */
    private String name_en;
    /**
     * 矿机名称(繁体)
     */
    private String name_cn;
 
    /**
     * 周期-天数(现做矿机等级判定)
     */
    private int cycle;
    /**
     * ----可解锁周期-- 截止后方可解锁 CYCLE_CLOSE
     */
    @TableField("CYCLE_CLOSE")
    private int cycle_close;
 
    /**
     * 日利率(%)
     */
    private double daily_rate;
    /**
     * 展示日利率(%)
     */
    private double show_daily_rate;
 
    /**
     * 最低投资金额(USDT)
     */
    private double investment_min;
    /**
     * 最高投资金额(USDT)
     */
    private double investment_max;
 
    /**
     * 上下架。0 下架, 1 上架,
     */
    private String state = "0";
    /**
     * 是否自主购买 0需管理员手动增加,1可自行购买
     */
    private String on_sale = "0";
    /**
     * ---是否是体验产品
     */
    private String test = "N";
 
    /**
     * 适用算法
     */
    private String algorithm;
    /**
     * 算力
     */
    private double computing_power;
    /**
     * 算力单位
     */
    private String computing_power_unit;
    /**
     * 功耗
     */
    private double power;
    /**
     * 生产厂家
     */
    private String product_factory;
    /**
     * 外箱尺寸
     */
    private String product_size;
    /**
     * 整机重量
     */
    private double weight;
    /**
     * 工作温度区间(最小值)
     */
    private double work_temperature_min;
    /**
     * 工作温度区间(最大值)
     */
    private double work_temperature_max;
    /**
     * 工作湿度区间(最小值)
     */
    private double work_humidity_min;
    /**
     * 工作湿度区间(最大值)
     */
    private double work_humidity_max;
    /**
     * 网络连接
     */
    private String internet;
    /**
     * 基础计息金额
     */
    private double base_compute_amount;
 
    @Getter
    private String img;
 
    @Getter
    @Setter
    private int unlock_user_need;
 
    /**
     * 矿机购买币种
     */
    @Getter
    @Setter
    private String buy_currency = "usdt";
    
    /**
     * 矿机购买币种
     */
    @Getter
    @Setter
    private String output_currency = "usdt";
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public int getCycle() {
        return cycle;
    }
 
    public void setCycle(int cycle) {
        this.cycle = cycle;
    }
 
    public double getDaily_rate() {
        return daily_rate;
    }
 
    public void setDaily_rate(double daily_rate) {
        this.daily_rate = daily_rate;
    }
 
    public double getInvestment_min() {
        return investment_min;
    }
 
    public void setInvestment_min(double investment_min) {
        this.investment_min = investment_min;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public String getName_en() {
        return name_en;
    }
 
    public void setName_en(String name_en) {
        this.name_en = name_en;
    }
 
    public String getName_cn() {
        return name_cn;
    }
 
    public void setName_cn(String name_cn) {
        this.name_cn = name_cn;
    }
 
    public String getTest() {
        return test;
    }
 
    public void setTest(String test) {
        this.test = test;
    }
 
    public String getOn_sale() {
        return on_sale;
    }
 
    public void setOn_sale(String on_sale) {
        this.on_sale = on_sale;
    }
 
    public double getInvestment_max() {
        return investment_max;
    }
 
    public void setInvestment_max(double investment_max) {
        this.investment_max = investment_max;
    }
 
    public double getShow_daily_rate() {
        return show_daily_rate;
    }
 
    public void setShow_daily_rate(double show_daily_rate) {
        this.show_daily_rate = show_daily_rate;
    }
 
    public int compare(Miner o1, Miner o2) {
        return o1.getInvestment_min() < o2.getInvestment_min() ? -1 : 1;
    }
 
    public int getCycle_close() {
        return cycle_close;
    }
 
    public void setCycle_close(int cycle_close) {
        this.cycle_close = cycle_close;
    }
 
    public String getAlgorithm() {
        return algorithm;
    }
 
    public double getPower() {
        return power;
    }
 
    public String getProduct_factory() {
        return product_factory;
    }
 
    public String getProduct_size() {
        return product_size;
    }
 
    public double getWeight() {
        return weight;
    }
 
    public String getInternet() {
        return internet;
    }
 
    public void setAlgorithm(String algorithm) {
        this.algorithm = algorithm;
    }
 
    public void setPower(double power) {
        this.power = power;
    }
 
    public void setProduct_factory(String product_factory) {
        this.product_factory = product_factory;
    }
 
    public void setProduct_size(String product_size) {
        this.product_size = product_size;
    }
 
    public void setWeight(double weight) {
        this.weight = weight;
    }
 
    public void setInternet(String internet) {
        this.internet = internet;
    }
 
    public double getWork_temperature_min() {
        return work_temperature_min;
    }
 
    public double getWork_temperature_max() {
        return work_temperature_max;
    }
 
    public double getWork_humidity_min() {
        return work_humidity_min;
    }
 
    public double getWork_humidity_max() {
        return work_humidity_max;
    }
 
    public void setWork_temperature_min(double work_temperature_min) {
        this.work_temperature_min = work_temperature_min;
    }
 
    public void setWork_temperature_max(double work_temperature_max) {
        this.work_temperature_max = work_temperature_max;
    }
 
    public void setWork_humidity_min(double work_humidity_min) {
        this.work_humidity_min = work_humidity_min;
    }
 
    public void setWork_humidity_max(double work_humidity_max) {
        this.work_humidity_max = work_humidity_max;
    }
 
    public double getComputing_power() {
        return computing_power;
    }
 
    public String getComputing_power_unit() {
        return computing_power_unit;
    }
 
    public void setComputing_power(double computing_power) {
        this.computing_power = computing_power;
    }
 
    public void setComputing_power_unit(String computing_power_unit) {
        this.computing_power_unit = computing_power_unit;
    }
 
    public double getBase_compute_amount() {
        return base_compute_amount;
    }
 
    public void setBase_compute_amount(double base_compute_amount) {
        this.base_compute_amount = base_compute_amount;
    }
 
    public void setImg(String img) {
        this.img = img;
    }
 
}