2021与蓝度共同重构项目,服务端
liuhaonan
2022-03-11 ec0013b70ba558ca26d3dac93fc66f7c6e87b0b5
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
package com.sandu.ximon.dao.domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
 
import lombok.Data;
 
/**
 * c3充电桩费率表
 * @TableName c3_charging_charge
 */
@TableName(value ="c3_charging_charge")
@Data
public class C3mChargingCharge implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer c3Id;
 
    /**
     * 
     */
    private Integer hour;
 
    /**
     * 
     */
    private Integer min;
 
    //  时间节点描述
    @TableField(exist = false)
    private String strTime;
 
 
    /**
     * 费率
     */
    private Double charge;
 
    /**
     * 
     */
    private Long timestamp;
 
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
 
    private static final Double DEFAULT_CHARGE = 8.8;
 
    public C3mChargingCharge(){}
 
    public C3mChargingCharge(Integer c3Id,Integer hour,Integer min, Double charge,Long timestamp){
        this.c3Id = c3Id;
        this.hour = hour;
        this.min = min;
        this.charge = charge;
        this.timestamp = timestamp;
    }
 
 
    public static C3mChargingCharge getInitInstance(Integer c3Id) {
        return new C3mChargingCharge(c3Id,0,0, DEFAULT_CHARGE, new Date().getTime());
    }
}