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; } } }