aa51513
2021-05-15 d06fbb7626ca5c9e4e7a91ac06a6f2ae186c0f27
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
package com.java110.entity.product;
 
import com.java110.entity.product.BoProductAttr;
 
/**
 *
 * 产品属性 (过程表)
 *
 * Created by wuxw on 2017/5/20.
 */
public class BoProductAttr extends ProductAttr implements Comparable<BoProductAttr>{
 
    private String boId;
 
    private String state;
 
    public String getBoId() {
        return boId;
    }
 
    public void setBoId(String boId) {
        this.boId = boId;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    /**
     * 将过程数据转为实例数据
     * @return
     */
    public ProductAttr convert(){
        ProductAttr productAttr = new BoProductAttr();
        return productAttr;
    }
 
    @Override
    public int compareTo(BoProductAttr otherBoProduct) {
        if("DEL".equals(this.getState()) && "ADD".equals(otherBoProduct.getState())) {
            return -1;
        }
        return 0;
    }
}