wuxw
2021-04-23 e9be8d15ab3ee20685793e16071c56485b32e33a
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
package com.java110.entity.user;
 
import com.java110.entity.DefaultBoAttrEntity;
 
import java.util.Date;
 
/**
 * 客户属性表(过程表)
 * Created by wuxw on 2016/12/27.
 */
public class BoCustAttr extends DefaultBoAttrEntity implements Comparable{
 
    private String custId;
 
    public String getCustId() {
        return custId;
    }
 
    public void setCustId(String custId) {
        this.custId = custId;
    }
 
 
    /**
     * 将过程数据转为实例数据
     * @return
     */
    public CustAttr convert(){
        CustAttr custAttr = new CustAttr();
 
        custAttr.setCustId(this.getCustId());
        custAttr.setAttrCd(this.getAttrCd());
        custAttr.setValue(this.getValue());
        return custAttr;
    }
 
    @Override
    public int compareTo(Object o) {
        BoCustAttr otherBoCust = (BoCustAttr)o;
        if("DEL".equals(this.getState()) && "ADD".equals(otherBoCust.getState())) {
            return -1;
        }
        return 0;
    }
}