AuxProperty.java
3.27 KB
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
package com.huaheng.api.erp.domain;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.huaheng.common.utils.StringUtils;
import com.huaheng.pc.config.material.domain.Material;
public class AuxProperty {
/**
* 等级
*/
@SerializedName("FAUXPROPID__FF100001")
@Expose
private ConvertObj level;
private Boolean isLevel = false;
/**
* 色号
*/
@SerializedName("FAUXPROPID__FF100002")
@Expose
private ConvertObj color;
private Boolean isColor = false;
/**
* 包装
*/
@SerializedName("FAUXPROPID__FF100003")
@Expose
private ConvertObj proPackaging;
private Boolean isProPackaging = false;
/**
* 订单
*/
@SerializedName("FAUXPROPID__FF100007")
@Expose
private ConvertObj productSchedule;
private Boolean isProductSchedule = false;
/**
* 产品尺寸
*
*/
@SerializedName("FAUXPROPID__FF100008")
@Expose
private ConvertObj productSize;
private Boolean isProductSize = false;
public AuxProperty() {
}
public AuxProperty(Material material) {
if(material!=null){
if(StringUtils.isNotNull(material.getIsLevel())){
if (material.getIsLevel()){
this.isLevel=material.getIsLevel();
}
}
if(StringUtils.isNotNull(material.getIsColor())){
if (material.getIsColor()){
this.isColor = material.getIsColor();
}
}
if(StringUtils.isNotNull(material.getIsProPackaging())){
if (material.getIsProPackaging()){
this.isProPackaging=material.getIsProPackaging();
}
}
if(StringUtils.isNotNull(material.getIsProductSchedule())){
if (material.getIsProductSchedule()){
this.isProductSchedule = material.getIsProductSchedule();
}
}
if(StringUtils.isNotNull(material.getIsCustProductSize())){
if (material.getIsCustProductSize()){
this.isProductSize=material.getIsCustProductSize();
}
}
}
}
public ConvertObj getLevel() {
return level;
}
public void setLevel(ConvertObj level) {
if(this.isLevel){
this.level = level;
}
}
public ConvertObj getColor() {
return color;
}
public void setColor(ConvertObj color) {
if(isColor){
this.color = color;
}
}
public ConvertObj getProductSize() {
return productSize;
}
public void setProductSize(ConvertObj productSize) {
if(isProductSize){
this.productSize = productSize;
}
}
public ConvertObj getProPackaging() {
return proPackaging;
}
public void setProPackaging(ConvertObj proPackaging) {
if(isProPackaging){
this.proPackaging = proPackaging;
}
}
public ConvertObj getProductSchedule() {
return productSchedule;
}
public void setProductSchedule(ConvertObj productSchedule) {
if(isProductSchedule){
this.productSchedule = productSchedule;
}
}
}