package com.changhong.epc.bean.admin; import com.changhong.epc.constter.base.BaseBean; import com.changhong.epc.constter.base.loop.LoopBaseBean; import com.changhong.epc.constter.exception.EPCServiceException; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.Column; import javax.persistence.Table; import javax.persistence.Transient; import java.io.Serializable; /** * 固定资产折旧服务信息 * @ClassName: AssetDepreciation * @author [九鼎联合科技] * @date 2017年09月12日 上午09:51:28 */ @Table(name="epc_asset_depreciation") @Data @EqualsAndHashCode(callSuper=true) public class AssetDepreciation extends BaseBean implements Serializable, LoopBaseBean, Cloneable { private static final long serialVersionUID = 1L; /** * 一级组织机构code * 表字段:org_code */ @Column(name = "org_code") private String orgCode; /** * 计提月份 * 表字段:date */ @Column(name = "date") private String date; /** * 处理类型 * 表字段:type */ @Column(name = "type") private AssetType type; /** * 计提人id * 表字段:openId */ @Column(name = "openId") private String openId; /** * 用户名称 * 表字段:userName */ @Column(name = "userName") private String userName; /** * 公司id * 表字段:companyId */ @Column(name = "companyId") private String companyId; /** * 租户id * 表字段:tenantId */ @Column(name = "tenantId") private String tenantId; /** * 错误信息 * 表字段:errTxt */ @Column(name = "errTxt") private String errTxt; @Column(name = "orderCode") private String orderCode; @Transient private String[] orgCodes; public AssetDepreciation clone(){ try { return (AssetDepreciation) super.clone(); } catch (CloneNotSupportedException e) { throw new EPCServiceException(e.getMessage()).addCause(e); } } public static AssetDepreciation of(AssetDepreciation assetDepreciation, String date){ AssetDepreciation clone = assetDepreciation.clone(); clone.setDate(date); return clone; } }