package com.changhong.epc.bean.tenant.cost;
|
|
import java.io.Serializable;
|
|
import javax.persistence.Column;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.changhong.epc.constter.base.BaseBean;
|
|
import lombok.EqualsAndHashCode;
|
import lombok.Data;
|
|
/**
|
*
|
* @ClassName: CostFromMapping
|
* @author [九鼎联合科技]
|
* @date 2017年09月27日 下午02:48:35
|
*/
|
@Table(name="epc_cost_from_mapping_{rule}")
|
@Data
|
@EqualsAndHashCode(callSuper=true)
|
public class CostFromMapping extends BaseBean implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
/**
|
* 费用类型id
|
* 表字段:ct_id
|
*/
|
@Column(name="ct_id")
|
private Integer ctId;
|
|
/**
|
* 表单id
|
* 表字段:f_id
|
*/
|
@Column(name="f_id")
|
private String fId;
|
|
/**
|
*
|
* 表字段:f_name
|
*/
|
@Column(name="f_name")
|
private String fName;
|
|
/**
|
* 预算:YS 申请:SQ 报销:BX
|
* 表字段:type
|
*/
|
@Column(name="type")
|
private String type;
|
|
//当前申请表单id
|
@Transient
|
private String formId;
|
|
//当前报销表单id
|
@Transient
|
private String expenseFormId;
|
|
public static CostFromMapping of(String formId){
|
CostFromMapping costFromMapping = new CostFromMapping();
|
costFromMapping.setFId(formId);
|
return costFromMapping;
|
}
|
|
}
|