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 javax.persistence.Transient; import java.io.Serializable; /** * * @ClassName: FixedAsset * @author [九鼎联合科技] * @date 2018年07月03日 上午09:58:28 */ @Table(name="epc_fixed_asset_{rule}") @Data @EqualsAndHashCode(callSuper=true) public class FixedAsset extends BaseBean implements Serializable { private static final long serialVersionUID = 1L; /** * 产品编号 * 表字段:assetsCode */ @Column(name="assetsCode") private String assetsCode; /** * 使用部门 * 表字段:useDepartment */ @Column(name="useDepartment") private String useDepartment; /** * 月折旧率 * 表字段:depreciationRate */ @Column(name="depreciationRate") private Double depreciationRate; /** * 本期折旧金额 * 表字段:currentDepreciation */ @Column(name="currentDepreciation") private Double currentDepreciation; /** * 累计折旧金额 * 表字段:cumulativeDepreciation */ @Column(name="cumulativeDepreciation") private Double cumulativeDepreciation; /** * 净值 * 表字段:netMoney */ @Column(name="netMoney") private Double netMoney; /** * 计提时间 * 表字段:accruedTime */ @Column(name="accruedTime") private String accruedTime; /** * 已用年限 * 表字段:alreadyTime */ @Column(name="alreadyTime") private String alreadyTime; /** * 剩余年限 * 表字段:surplusTime */ @Column(name="surplusTime") private String surplusTime; /** * 资产名称 * 表字段:assetsName */ @Column(name="assetsName") private String assetsName; /** * 规格型号 * 表字段:specifications */ @Column(name="specifications") private String specifications; /** * 资产化日期 * 表字段:capitalizationData */ @Column(name="capitalizationData") private String capitalizationData; /** * 预计使用年限 * 表字段:estimateTime */ @Column(name="estimateTime") private String estimateTime; /** * 原值 * 表字段:originalMoney */ @Column(name="originalMoney") private Double originalMoney; /** * 折旧方法 * 表字段:depreciationMethod */ @Column(name="depreciationMethod") private String depreciationMethod; /** * 部门名称 * 表字段:useDepartmentName */ @Column(name="useDepartmentName") private String useDepartmentName; /** * 计提期间(yyyy-MM) * 表字段:calculationPeriod */ @Column(name="calculationPeriod") private String calculationPeriod; /** * 计提状态 0 成功 其它 失败 * 表字段:accruedState */ @Column(name="accruedState") private String accruedState; /** * 资产类型 */ @Column(name="assetsType") private String assetsType; /** * 资产类型名称 */ @Column(name="assetsTypeName") private String assetsTypeName; /** * 保管人 */ @Column(name="keepingUser") private String keepingUser; /** * 保管人名称 */ @Column(name="keepingUserName") private String keepingUserName; /** * 修改累计折旧额 */ @Transient private String updateCumulativeDepreciation; /** * 修改净值 */ @Transient private String updateNetMoney; public static FixedAsset of(String assetsCode) { FixedAsset fixedAsset = new FixedAsset(); fixedAsset.setAssetsCode(assetsCode); return fixedAsset; } public static FixedAsset of(String orgCode, String calculationPeriod) { FixedAsset fixedAsset = new FixedAsset(); fixedAsset.setUseDepartment(orgCode); fixedAsset.setCalculationPeriod(calculationPeriod); return fixedAsset; } }