Helius
2021-01-13 7ec998fe0bfc7c0366e52ed5389ae48faabf61f1
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package com.matrix.system.hive.pojo;
 
import com.matrix.system.constance.Dictionary;
import com.matrix.system.hive.bean.ShoppingGoodsAssemble;
 
 
public class SysProjUserVo {
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    /*vo对象*****************************/
    /**
     * 当剩余次数大于10000时返回不限
     */
    private String surplusCountName;
 
    /**
     * 套餐来源,转让,购买
     * 来源包含赠送时,返回是
     * 不包含返回否
     */
    private String sourceName;
 
    /**
     * 如果是项目,则显示销售项目名称
     * 如果是套餐,则显示销售套餐名[项目名]
     **/
    private String shoppingName;
    /*vo对象*****************************/
 
 
    /**
     * 套餐来源,转让,购买
     */
    private String source;
    /**
     * 剩余次数
     */
    private Integer surplusCount;
    /**
     * 组合产品销售sku信息
     */
    private ShoppingGoodsAssemble shoppingGoodsAssemble;
 
    /**
     * 项目使用情况类型
     * 项目,套餐,套餐卡
     */
    private String type;
 
    public String getSurplusCountName() {
        if (getSurplusCount() == null) {
            return "";
        }
        if (getSurplusCount() > 10000) {
            surplusCountName = Dictionary.MAX_USE_STRING;
            return surplusCountName;
        }
        return this.getSurplusCount().toString();
    }
 
    public String getSourceName() {
        if (getSource() == null) {
            return "";
        }
        if (getSource().contains(Dictionary.TAOCAN_SOURCE_ZS)) {
            sourceName = Dictionary.FLAG_YES;
        } else {
            sourceName = Dictionary.FLAG_NO;
            ;
        }
        return sourceName;
    }
 
    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }
 
    public void setSurplusCountName(String surplusCountName) {
        this.surplusCountName = surplusCountName;
    }
 
 
    public String getType() {
        return type;
    }
 
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getShoppingName() {
      /*  if (getShoppingGoodsAssemble() == null) {
            return "";
        }
        //如果项目使用情况来源于项目或者套餐卡,则只需要显示商品名称
 
        if (Dictionary.SHOPPING_GOODS_TYPE_XM.equals(getShoppingGoodsAssemble().getShoppingGoods().getGoodType())
                || Dictionary.SHOPPING_GOODS_TYPE_TCK.equals(getShoppingGoodsAssemble().getShoppingGoods().getGoodType())
        ) {
            shoppingName = getShoppingGoodsAssemble().getShoppingGoods().getName();
        } else {
            shoppingName = getShoppingGoodsAssemble().getShoppingGoods().getName() + "[" + getShoppingGoodsAssemble().getProjInfo().getProjName() + "]";
        }*/
        return shoppingName;
    }
 
    public void setShoppingName(String shoppingName) {
        this.shoppingName = shoppingName;
    }
 
    public Integer getSurplusCount() {
        return surplusCount;
    }
 
    public void setSurplusCount(Integer surplusCount) {
        this.surplusCount = surplusCount;
    }
 
    public ShoppingGoodsAssemble getShoppingGoodsAssemble() {
        return shoppingGoodsAssemble;
    }
 
    public void setShoppingGoodsAssemble(ShoppingGoodsAssemble shoppingGoodsAssemble) {
        this.shoppingGoodsAssemble = shoppingGoodsAssemble;
    }
 
    public String getSource() {
        return source;
    }
 
    public void setSource(String source) {
        this.source = source;
    }
 
 
}