|
|
@@ -109,4 +109,82 @@ public class UserRelate {
|
|
109
|
109
|
public void setDate(LocalDate date) {
|
|
110
|
110
|
this.date = date;
|
|
111
|
111
|
}
|
|
|
112
|
+
|
|
|
113
|
+ public static final class UserRelateBuilder {
|
|
|
114
|
+ private Integer id;
|
|
|
115
|
+ private Integer uid;
|
|
|
116
|
+ private Integer pid;
|
|
|
117
|
+ private Integer del_flag;
|
|
|
118
|
+ private Integer is_dacang = 0;
|
|
|
119
|
+ private Integer is_merchant = 0;
|
|
|
120
|
+ private Integer is_channel = 0;
|
|
|
121
|
+ private Integer is_agent = 0;
|
|
|
122
|
+ private LocalDate date;
|
|
|
123
|
+
|
|
|
124
|
+ private UserRelateBuilder() {
|
|
|
125
|
+ }
|
|
|
126
|
+
|
|
|
127
|
+ public static UserRelateBuilder anUserRelate() {
|
|
|
128
|
+ return new UserRelateBuilder();
|
|
|
129
|
+ }
|
|
|
130
|
+
|
|
|
131
|
+ public UserRelateBuilder withId(Integer id) {
|
|
|
132
|
+ this.id = id;
|
|
|
133
|
+ return this;
|
|
|
134
|
+ }
|
|
|
135
|
+
|
|
|
136
|
+ public UserRelateBuilder withUid(Integer uid) {
|
|
|
137
|
+ this.uid = uid;
|
|
|
138
|
+ return this;
|
|
|
139
|
+ }
|
|
|
140
|
+
|
|
|
141
|
+ public UserRelateBuilder withPid(Integer pid) {
|
|
|
142
|
+ this.pid = pid;
|
|
|
143
|
+ return this;
|
|
|
144
|
+ }
|
|
|
145
|
+
|
|
|
146
|
+ public UserRelateBuilder withDel_flag(Integer del_flag) {
|
|
|
147
|
+ this.del_flag = del_flag;
|
|
|
148
|
+ return this;
|
|
|
149
|
+ }
|
|
|
150
|
+
|
|
|
151
|
+ public UserRelateBuilder withIs_dacang(Integer is_dacang) {
|
|
|
152
|
+ this.is_dacang = is_dacang;
|
|
|
153
|
+ return this;
|
|
|
154
|
+ }
|
|
|
155
|
+
|
|
|
156
|
+ public UserRelateBuilder withIs_merchant(Integer is_merchant) {
|
|
|
157
|
+ this.is_merchant = is_merchant;
|
|
|
158
|
+ return this;
|
|
|
159
|
+ }
|
|
|
160
|
+
|
|
|
161
|
+ public UserRelateBuilder withIs_channel(Integer is_channel) {
|
|
|
162
|
+ this.is_channel = is_channel;
|
|
|
163
|
+ return this;
|
|
|
164
|
+ }
|
|
|
165
|
+
|
|
|
166
|
+ public UserRelateBuilder withIs_agent(Integer is_agent) {
|
|
|
167
|
+ this.is_agent = is_agent;
|
|
|
168
|
+ return this;
|
|
|
169
|
+ }
|
|
|
170
|
+
|
|
|
171
|
+ public UserRelateBuilder withDate(LocalDate date) {
|
|
|
172
|
+ this.date = date;
|
|
|
173
|
+ return this;
|
|
|
174
|
+ }
|
|
|
175
|
+
|
|
|
176
|
+ public UserRelate build() {
|
|
|
177
|
+ UserRelate userRelate = new UserRelate();
|
|
|
178
|
+ userRelate.setId(id);
|
|
|
179
|
+ userRelate.setUid(uid);
|
|
|
180
|
+ userRelate.setPid(pid);
|
|
|
181
|
+ userRelate.setDel_flag(del_flag);
|
|
|
182
|
+ userRelate.setIs_dacang(is_dacang);
|
|
|
183
|
+ userRelate.setIs_merchant(is_merchant);
|
|
|
184
|
+ userRelate.setIs_channel(is_channel);
|
|
|
185
|
+ userRelate.setIs_agent(is_agent);
|
|
|
186
|
+ userRelate.setDate(date);
|
|
|
187
|
+ return userRelate;
|
|
|
188
|
+ }
|
|
|
189
|
+ }
|
|
112
|
190
|
}
|