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