zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
package com.changhong.epc.bean.tenant.asset;
 
import com.changhong.epc.constter.base.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
 
/**
 * 
 * @ClassName: FixedSummary
 * @author [九鼎联合科技]
 * @date 2018年07月03日 上午09:58:28
 */
@Table(name="epc_fixed_summary_{rule}")
@Data
@EqualsAndHashCode(callSuper=true)
public class FixedSummary extends BaseBean implements Serializable {
 
    private static final long serialVersionUID = 1L;
    
    
    /**
     * 部门code
     * 表字段:useDepartment
     */
    @Column(name="useDepartment")
    private String useDepartment;
 
    /**
     * 云尚行订单号
     * 表字段: orderCode
     */
    @Column(name="orderCode")
    private String orderCode;
    
    /**
     * 总原值
     * 表字段:originalMoney
     */
    @Column(name="originalMoney")
    private Double originalMoney;
    
    /**
     * 累计折旧额
     * 表字段:cumulativeDepreciation
     */
    @Column(name="cumulativeDepreciation")
    private Double cumulativeDepreciation;
    
    /**
     * 本期折旧额
     * 表字段:currentDepreciation
     */
    @Column(name="currentDepreciation")
    private Double currentDepreciation;
    
    /**
     * 净值
     * 表字段:netMoney
     */
    @Column(name="netMoney")
    private Double netMoney;
    
    /**
     * 计提状态
     * 表字段:countingState
     */
    @Column(name="countingState")
    private String countingState;
    
    /**
     * 计提时间
     * 表字段:calculationData
     */
    @Column(name="calculationData")
    private String calculationData;
    
    /**
     * 记账状态 0未记账 1记账中  45已记账 49记账异常
     * 表字段:bookkeepingState
     */
    @Column(name="bookkeepingState")
    private String bookkeepingState;
    
    /**
     * 点记账时间
     * 表字段:bookkeepingData
     */
    @Column(name="bookkeepingData")
    private String bookkeepingData;
 
    /**
     * 计提期间
     * 表字段:calculationPeriod
     */
    @Column(name="calculationPeriod")
    private String calculationPeriod;
    
    /**
     * 完成记账时间
     * 表字段:accountingTime
     */
    @Column(name="accountingTime")
    private String accountingTime;
    
    /**
     * 记账编号
     * 表字段:number
     */
    @Column(name="number")
    private String number;
 
    public static FixedSummary of(String useDepartment){
        return of(useDepartment, null);
    }
 
    public static FixedSummary of(String useDepartment, String date) {
        FixedSummary fixedSummary = new FixedSummary();
        fixedSummary.setUseDepartment(useDepartment);
        fixedSummary.setCalculationPeriod(date);
        return fixedSummary;
    }
 
    public void appendCurrentDepreciation(Double currentDepreciation) {
        if(this.currentDepreciation == null){
            this.currentDepreciation = currentDepreciation;
        }else{
            this.currentDepreciation += currentDepreciation;
        }
    }
}