|
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+
|
|
|
3
|
+namespace app\entity\data\store;
|
|
|
4
|
+
|
|
|
5
|
+use app\entity\data\DataEntity;
|
|
|
6
|
+
|
|
|
7
|
+class StoreGroupOrderEntity extends DataEntity
|
|
|
8
|
+{
|
|
|
9
|
+ public $groupOrderId = 0; // 订单ID
|
|
|
10
|
+ public $groupOrderSn = ''; // 订单号
|
|
|
11
|
+ public $uid = 0; // 用户ID
|
|
|
12
|
+ public $totalPostage = 0.00; // 邮费
|
|
|
13
|
+ public $totalPrice = 0.00; // 订单总额
|
|
|
14
|
+ public $totalNum = 0; // 商品数
|
|
|
15
|
+ public $couponPrice = 0.00; // 优惠金额
|
|
|
16
|
+ public $realName = ''; // 联系人
|
|
|
17
|
+ public $userPhone = ''; // 联系电话
|
|
|
18
|
+ public $userAddress = ''; // 收货地址
|
|
|
19
|
+ public $payPrice = 0.00; // 支付金额
|
|
|
20
|
+ public $payPostage = 0.00; // 支付邮费
|
|
|
21
|
+ public $cost = 0.00; // 成本价
|
|
|
22
|
+ public $giveCouponIds = ''; // 赠送优惠券
|
|
|
23
|
+ public $paid = 0; // 是否支付
|
|
|
24
|
+ public $payTime = null; // 支付时间
|
|
|
25
|
+ public $payType = 0; // 支付方式
|
|
|
26
|
+ public $createTime = null; // 创建时间
|
|
|
27
|
+ public $isRemind = 0; // 是否提醒
|
|
|
28
|
+ public $isDel = 0; // 是否删除
|
|
|
29
|
+ public $rand = ''; // 订单号随机数
|
|
|
30
|
+ public $split = null; // 分账状态
|
|
|
31
|
+ public $serialNumber = ''; // 首信易交易流水号
|
|
|
32
|
+ public $testOrder = 0; // 是否为测试订单
|
|
|
33
|
+ public $hfPayId = ''; // 汇付订单id
|
|
|
34
|
+ public $payWx = null; // 微信支付渠道后台设置
|
|
|
35
|
+ public $fzonePaytype = ''; // 组合支付
|
|
|
36
|
+
|
|
|
37
|
+ /**
|
|
|
38
|
+ * @return int
|
|
|
39
|
+ */
|
|
|
40
|
+ public function getGroupOrderId(): int
|
|
|
41
|
+ {
|
|
|
42
|
+ return $this->groupOrderId;
|
|
|
43
|
+ }
|
|
|
44
|
+
|
|
|
45
|
+ /**
|
|
|
46
|
+ * @param int $groupOrderId
|
|
|
47
|
+ * @return StoreGroupOrderEntity
|
|
|
48
|
+ */
|
|
|
49
|
+ public function setGroupOrderId(int $groupOrderId): StoreGroupOrderEntity
|
|
|
50
|
+ {
|
|
|
51
|
+ $this->groupOrderId = $groupOrderId;
|
|
|
52
|
+ return $this;
|
|
|
53
|
+ }
|
|
|
54
|
+
|
|
|
55
|
+ /**
|
|
|
56
|
+ * @return string
|
|
|
57
|
+ */
|
|
|
58
|
+ public function getGroupOrderSn(): string
|
|
|
59
|
+ {
|
|
|
60
|
+ return $this->groupOrderSn;
|
|
|
61
|
+ }
|
|
|
62
|
+
|
|
|
63
|
+ /**
|
|
|
64
|
+ * @param string $groupOrderSn
|
|
|
65
|
+ * @return StoreGroupOrderEntity
|
|
|
66
|
+ */
|
|
|
67
|
+ public function setGroupOrderSn(string $groupOrderSn): StoreGroupOrderEntity
|
|
|
68
|
+ {
|
|
|
69
|
+ $this->groupOrderSn = $groupOrderSn;
|
|
|
70
|
+ return $this;
|
|
|
71
|
+ }
|
|
|
72
|
+
|
|
|
73
|
+ /**
|
|
|
74
|
+ * @return int
|
|
|
75
|
+ */
|
|
|
76
|
+ public function getUid(): int
|
|
|
77
|
+ {
|
|
|
78
|
+ return $this->uid;
|
|
|
79
|
+ }
|
|
|
80
|
+
|
|
|
81
|
+ /**
|
|
|
82
|
+ * @param int $uid
|
|
|
83
|
+ * @return StoreGroupOrderEntity
|
|
|
84
|
+ */
|
|
|
85
|
+ public function setUid(int $uid): StoreGroupOrderEntity
|
|
|
86
|
+ {
|
|
|
87
|
+ $this->uid = $uid;
|
|
|
88
|
+ return $this;
|
|
|
89
|
+ }
|
|
|
90
|
+
|
|
|
91
|
+ /**
|
|
|
92
|
+ * @return float
|
|
|
93
|
+ */
|
|
|
94
|
+ public function getTotalPostage(): float
|
|
|
95
|
+ {
|
|
|
96
|
+ return $this->totalPostage;
|
|
|
97
|
+ }
|
|
|
98
|
+
|
|
|
99
|
+ /**
|
|
|
100
|
+ * @param float $totalPostage
|
|
|
101
|
+ * @return StoreGroupOrderEntity
|
|
|
102
|
+ */
|
|
|
103
|
+ public function setTotalPostage(float $totalPostage): StoreGroupOrderEntity
|
|
|
104
|
+ {
|
|
|
105
|
+ $this->totalPostage = $totalPostage;
|
|
|
106
|
+ return $this;
|
|
|
107
|
+ }
|
|
|
108
|
+
|
|
|
109
|
+ /**
|
|
|
110
|
+ * @return float
|
|
|
111
|
+ */
|
|
|
112
|
+ public function getTotalPrice(): float
|
|
|
113
|
+ {
|
|
|
114
|
+ return $this->totalPrice;
|
|
|
115
|
+ }
|
|
|
116
|
+
|
|
|
117
|
+ /**
|
|
|
118
|
+ * @param float $totalPrice
|
|
|
119
|
+ * @return StoreGroupOrderEntity
|
|
|
120
|
+ */
|
|
|
121
|
+ public function setTotalPrice(float $totalPrice): StoreGroupOrderEntity
|
|
|
122
|
+ {
|
|
|
123
|
+ $this->totalPrice = $totalPrice;
|
|
|
124
|
+ return $this;
|
|
|
125
|
+ }
|
|
|
126
|
+
|
|
|
127
|
+ /**
|
|
|
128
|
+ * @return int
|
|
|
129
|
+ */
|
|
|
130
|
+ public function getTotalNum(): int
|
|
|
131
|
+ {
|
|
|
132
|
+ return $this->totalNum;
|
|
|
133
|
+ }
|
|
|
134
|
+
|
|
|
135
|
+ /**
|
|
|
136
|
+ * @param int $totalNum
|
|
|
137
|
+ * @return StoreGroupOrderEntity
|
|
|
138
|
+ */
|
|
|
139
|
+ public function setTotalNum(int $totalNum): StoreGroupOrderEntity
|
|
|
140
|
+ {
|
|
|
141
|
+ $this->totalNum = $totalNum;
|
|
|
142
|
+ return $this;
|
|
|
143
|
+ }
|
|
|
144
|
+
|
|
|
145
|
+ /**
|
|
|
146
|
+ * @return float
|
|
|
147
|
+ */
|
|
|
148
|
+ public function getCouponPrice(): float
|
|
|
149
|
+ {
|
|
|
150
|
+ return $this->couponPrice;
|
|
|
151
|
+ }
|
|
|
152
|
+
|
|
|
153
|
+ /**
|
|
|
154
|
+ * @param float $couponPrice
|
|
|
155
|
+ * @return StoreGroupOrderEntity
|
|
|
156
|
+ */
|
|
|
157
|
+ public function setCouponPrice(float $couponPrice): StoreGroupOrderEntity
|
|
|
158
|
+ {
|
|
|
159
|
+ $this->couponPrice = $couponPrice;
|
|
|
160
|
+ return $this;
|
|
|
161
|
+ }
|
|
|
162
|
+
|
|
|
163
|
+ /**
|
|
|
164
|
+ * @return string
|
|
|
165
|
+ */
|
|
|
166
|
+ public function getRealName(): string
|
|
|
167
|
+ {
|
|
|
168
|
+ return $this->realName;
|
|
|
169
|
+ }
|
|
|
170
|
+
|
|
|
171
|
+ /**
|
|
|
172
|
+ * @param string $realName
|
|
|
173
|
+ * @return StoreGroupOrderEntity
|
|
|
174
|
+ */
|
|
|
175
|
+ public function setRealName(string $realName): StoreGroupOrderEntity
|
|
|
176
|
+ {
|
|
|
177
|
+ $this->realName = $realName;
|
|
|
178
|
+ return $this;
|
|
|
179
|
+ }
|
|
|
180
|
+
|
|
|
181
|
+ /**
|
|
|
182
|
+ * @return string
|
|
|
183
|
+ */
|
|
|
184
|
+ public function getUserPhone(): string
|
|
|
185
|
+ {
|
|
|
186
|
+ return $this->userPhone;
|
|
|
187
|
+ }
|
|
|
188
|
+
|
|
|
189
|
+ /**
|
|
|
190
|
+ * @param string $userPhone
|
|
|
191
|
+ * @return StoreGroupOrderEntity
|
|
|
192
|
+ */
|
|
|
193
|
+ public function setUserPhone(string $userPhone): StoreGroupOrderEntity
|
|
|
194
|
+ {
|
|
|
195
|
+ $this->userPhone = $userPhone;
|
|
|
196
|
+ return $this;
|
|
|
197
|
+ }
|
|
|
198
|
+
|
|
|
199
|
+ /**
|
|
|
200
|
+ * @return string
|
|
|
201
|
+ */
|
|
|
202
|
+ public function getUserAddress(): string
|
|
|
203
|
+ {
|
|
|
204
|
+ return $this->userAddress;
|
|
|
205
|
+ }
|
|
|
206
|
+
|
|
|
207
|
+ /**
|
|
|
208
|
+ * @param string $userAddress
|
|
|
209
|
+ * @return StoreGroupOrderEntity
|
|
|
210
|
+ */
|
|
|
211
|
+ public function setUserAddress(string $userAddress): StoreGroupOrderEntity
|
|
|
212
|
+ {
|
|
|
213
|
+ $this->userAddress = $userAddress;
|
|
|
214
|
+ return $this;
|
|
|
215
|
+ }
|
|
|
216
|
+
|
|
|
217
|
+ /**
|
|
|
218
|
+ * @return float
|
|
|
219
|
+ */
|
|
|
220
|
+ public function getPayPrice(): float
|
|
|
221
|
+ {
|
|
|
222
|
+ return $this->payPrice;
|
|
|
223
|
+ }
|
|
|
224
|
+
|
|
|
225
|
+ /**
|
|
|
226
|
+ * @param float $payPrice
|
|
|
227
|
+ * @return StoreGroupOrderEntity
|
|
|
228
|
+ */
|
|
|
229
|
+ public function setPayPrice(float $payPrice): StoreGroupOrderEntity
|
|
|
230
|
+ {
|
|
|
231
|
+ $this->payPrice = $payPrice;
|
|
|
232
|
+ return $this;
|
|
|
233
|
+ }
|
|
|
234
|
+
|
|
|
235
|
+ /**
|
|
|
236
|
+ * @return float
|
|
|
237
|
+ */
|
|
|
238
|
+ public function getPayPostage(): float
|
|
|
239
|
+ {
|
|
|
240
|
+ return $this->payPostage;
|
|
|
241
|
+ }
|
|
|
242
|
+
|
|
|
243
|
+ /**
|
|
|
244
|
+ * @param float $payPostage
|
|
|
245
|
+ * @return StoreGroupOrderEntity
|
|
|
246
|
+ */
|
|
|
247
|
+ public function setPayPostage(float $payPostage): StoreGroupOrderEntity
|
|
|
248
|
+ {
|
|
|
249
|
+ $this->payPostage = $payPostage;
|
|
|
250
|
+ return $this;
|
|
|
251
|
+ }
|
|
|
252
|
+
|
|
|
253
|
+ /**
|
|
|
254
|
+ * @return float
|
|
|
255
|
+ */
|
|
|
256
|
+ public function getCost(): float
|
|
|
257
|
+ {
|
|
|
258
|
+ return $this->cost;
|
|
|
259
|
+ }
|
|
|
260
|
+
|
|
|
261
|
+ /**
|
|
|
262
|
+ * @param float $cost
|
|
|
263
|
+ * @return StoreGroupOrderEntity
|
|
|
264
|
+ */
|
|
|
265
|
+ public function setCost(float $cost): StoreGroupOrderEntity
|
|
|
266
|
+ {
|
|
|
267
|
+ $this->cost = $cost;
|
|
|
268
|
+ return $this;
|
|
|
269
|
+ }
|
|
|
270
|
+
|
|
|
271
|
+ /**
|
|
|
272
|
+ * @return string
|
|
|
273
|
+ */
|
|
|
274
|
+ public function getGiveCouponIds(): string
|
|
|
275
|
+ {
|
|
|
276
|
+ return $this->giveCouponIds;
|
|
|
277
|
+ }
|
|
|
278
|
+
|
|
|
279
|
+ /**
|
|
|
280
|
+ * @param string $giveCouponIds
|
|
|
281
|
+ * @return StoreGroupOrderEntity
|
|
|
282
|
+ */
|
|
|
283
|
+ public function setGiveCouponIds(string $giveCouponIds): StoreGroupOrderEntity
|
|
|
284
|
+ {
|
|
|
285
|
+ $this->giveCouponIds = $giveCouponIds;
|
|
|
286
|
+ return $this;
|
|
|
287
|
+ }
|
|
|
288
|
+
|
|
|
289
|
+ /**
|
|
|
290
|
+ * @return int
|
|
|
291
|
+ */
|
|
|
292
|
+ public function getPaid(): int
|
|
|
293
|
+ {
|
|
|
294
|
+ return $this->paid;
|
|
|
295
|
+ }
|
|
|
296
|
+
|
|
|
297
|
+ /**
|
|
|
298
|
+ * @param int $paid
|
|
|
299
|
+ * @return StoreGroupOrderEntity
|
|
|
300
|
+ */
|
|
|
301
|
+ public function setPaid(int $paid): StoreGroupOrderEntity
|
|
|
302
|
+ {
|
|
|
303
|
+ $this->paid = $paid;
|
|
|
304
|
+ return $this;
|
|
|
305
|
+ }
|
|
|
306
|
+
|
|
|
307
|
+ /**
|
|
|
308
|
+ * @return mixed
|
|
|
309
|
+ */
|
|
|
310
|
+ public function getPayTime()
|
|
|
311
|
+ {
|
|
|
312
|
+ return $this->payTime;
|
|
|
313
|
+ }
|
|
|
314
|
+
|
|
|
315
|
+ /**
|
|
|
316
|
+ * @param mixed $payTime
|
|
|
317
|
+ * @return StoreGroupOrderEntity
|
|
|
318
|
+ */
|
|
|
319
|
+ public function setPayTime($payTime): StoreGroupOrderEntity
|
|
|
320
|
+ {
|
|
|
321
|
+ $this->payTime = $payTime;
|
|
|
322
|
+ return $this;
|
|
|
323
|
+ }
|
|
|
324
|
+
|
|
|
325
|
+ /**
|
|
|
326
|
+ * @return int
|
|
|
327
|
+ */
|
|
|
328
|
+ public function getPayType(): int
|
|
|
329
|
+ {
|
|
|
330
|
+ return $this->payType;
|
|
|
331
|
+ }
|
|
|
332
|
+
|
|
|
333
|
+ /**
|
|
|
334
|
+ * @param int $payType
|
|
|
335
|
+ * @return StoreGroupOrderEntity
|
|
|
336
|
+ */
|
|
|
337
|
+ public function setPayType(int $payType): StoreGroupOrderEntity
|
|
|
338
|
+ {
|
|
|
339
|
+ $this->payType = $payType;
|
|
|
340
|
+ return $this;
|
|
|
341
|
+ }
|
|
|
342
|
+
|
|
|
343
|
+ /**
|
|
|
344
|
+ * @return mixed
|
|
|
345
|
+ */
|
|
|
346
|
+ public function getCreateTime()
|
|
|
347
|
+ {
|
|
|
348
|
+ return $this->createTime;
|
|
|
349
|
+ }
|
|
|
350
|
+
|
|
|
351
|
+ /**
|
|
|
352
|
+ * @param mixed $createTime
|
|
|
353
|
+ * @return StoreGroupOrderEntity
|
|
|
354
|
+ */
|
|
|
355
|
+ public function setCreateTime($createTime): StoreGroupOrderEntity
|
|
|
356
|
+ {
|
|
|
357
|
+ $this->createTime = $createTime;
|
|
|
358
|
+ return $this;
|
|
|
359
|
+ }
|
|
|
360
|
+
|
|
|
361
|
+ /**
|
|
|
362
|
+ * @return int
|
|
|
363
|
+ */
|
|
|
364
|
+ public function getIsRemind(): int
|
|
|
365
|
+ {
|
|
|
366
|
+ return $this->isRemind;
|
|
|
367
|
+ }
|
|
|
368
|
+
|
|
|
369
|
+ /**
|
|
|
370
|
+ * @param int $isRemind
|
|
|
371
|
+ * @return StoreGroupOrderEntity
|
|
|
372
|
+ */
|
|
|
373
|
+ public function setIsRemind(int $isRemind): StoreGroupOrderEntity
|
|
|
374
|
+ {
|
|
|
375
|
+ $this->isRemind = $isRemind;
|
|
|
376
|
+ return $this;
|
|
|
377
|
+ }
|
|
|
378
|
+
|
|
|
379
|
+ /**
|
|
|
380
|
+ * @return int
|
|
|
381
|
+ */
|
|
|
382
|
+ public function getIsDel(): int
|
|
|
383
|
+ {
|
|
|
384
|
+ return $this->isDel;
|
|
|
385
|
+ }
|
|
|
386
|
+
|
|
|
387
|
+ /**
|
|
|
388
|
+ * @param int $isDel
|
|
|
389
|
+ * @return StoreGroupOrderEntity
|
|
|
390
|
+ */
|
|
|
391
|
+ public function setIsDel(int $isDel): StoreGroupOrderEntity
|
|
|
392
|
+ {
|
|
|
393
|
+ $this->isDel = $isDel;
|
|
|
394
|
+ return $this;
|
|
|
395
|
+ }
|
|
|
396
|
+
|
|
|
397
|
+ /**
|
|
|
398
|
+ * @return string
|
|
|
399
|
+ */
|
|
|
400
|
+ public function getRand(): string
|
|
|
401
|
+ {
|
|
|
402
|
+ return $this->rand;
|
|
|
403
|
+ }
|
|
|
404
|
+
|
|
|
405
|
+ /**
|
|
|
406
|
+ * @param string $rand
|
|
|
407
|
+ * @return StoreGroupOrderEntity
|
|
|
408
|
+ */
|
|
|
409
|
+ public function setRand(string $rand): StoreGroupOrderEntity
|
|
|
410
|
+ {
|
|
|
411
|
+ $this->rand = $rand;
|
|
|
412
|
+ return $this;
|
|
|
413
|
+ }
|
|
|
414
|
+
|
|
|
415
|
+ /**
|
|
|
416
|
+ * @return mixed
|
|
|
417
|
+ */
|
|
|
418
|
+ public function getSplit()
|
|
|
419
|
+ {
|
|
|
420
|
+ return $this->split;
|
|
|
421
|
+ }
|
|
|
422
|
+
|
|
|
423
|
+ /**
|
|
|
424
|
+ * @param mixed $split
|
|
|
425
|
+ * @return StoreGroupOrderEntity
|
|
|
426
|
+ */
|
|
|
427
|
+ public function setSplit($split)
|
|
|
428
|
+ {
|
|
|
429
|
+ $this->split = $split;
|
|
|
430
|
+ return $this;
|
|
|
431
|
+ }
|
|
|
432
|
+
|
|
|
433
|
+ /**
|
|
|
434
|
+ * @return string
|
|
|
435
|
+ */
|
|
|
436
|
+ public function getSerialNumber(): string
|
|
|
437
|
+ {
|
|
|
438
|
+ return $this->serialNumber;
|
|
|
439
|
+ }
|
|
|
440
|
+
|
|
|
441
|
+ /**
|
|
|
442
|
+ * @param string $serialNumber
|
|
|
443
|
+ * @return StoreGroupOrderEntity
|
|
|
444
|
+ */
|
|
|
445
|
+ public function setSerialNumber(string $serialNumber): StoreGroupOrderEntity
|
|
|
446
|
+ {
|
|
|
447
|
+ $this->serialNumber = $serialNumber;
|
|
|
448
|
+ return $this;
|
|
|
449
|
+ }
|
|
|
450
|
+
|
|
|
451
|
+ /**
|
|
|
452
|
+ * @return int
|
|
|
453
|
+ */
|
|
|
454
|
+ public function getTestOrder(): int
|
|
|
455
|
+ {
|
|
|
456
|
+ return $this->testOrder;
|
|
|
457
|
+ }
|
|
|
458
|
+
|
|
|
459
|
+ /**
|
|
|
460
|
+ * @param int $testOrder
|
|
|
461
|
+ * @return StoreGroupOrderEntity
|
|
|
462
|
+ */
|
|
|
463
|
+ public function setTestOrder(int $testOrder): StoreGroupOrderEntity
|
|
|
464
|
+ {
|
|
|
465
|
+ $this->testOrder = $testOrder;
|
|
|
466
|
+ return $this;
|
|
|
467
|
+ }
|
|
|
468
|
+
|
|
|
469
|
+ /**
|
|
|
470
|
+ * @return string
|
|
|
471
|
+ */
|
|
|
472
|
+ public function getHfPayId(): string
|
|
|
473
|
+ {
|
|
|
474
|
+ return $this->hfPayId;
|
|
|
475
|
+ }
|
|
|
476
|
+
|
|
|
477
|
+ /**
|
|
|
478
|
+ * @param string $hfPayId
|
|
|
479
|
+ * @return StoreGroupOrderEntity
|
|
|
480
|
+ */
|
|
|
481
|
+ public function setHfPayId(string $hfPayId): StoreGroupOrderEntity
|
|
|
482
|
+ {
|
|
|
483
|
+ $this->hfPayId = $hfPayId;
|
|
|
484
|
+ return $this;
|
|
|
485
|
+ }
|
|
|
486
|
+
|
|
|
487
|
+ /**
|
|
|
488
|
+ * @return mixed
|
|
|
489
|
+ */
|
|
|
490
|
+ public function getPayWx()
|
|
|
491
|
+ {
|
|
|
492
|
+ return $this->payWx;
|
|
|
493
|
+ }
|
|
|
494
|
+
|
|
|
495
|
+ /**
|
|
|
496
|
+ * @param mixed $payWx
|
|
|
497
|
+ * @return StoreGroupOrderEntity
|
|
|
498
|
+ */
|
|
|
499
|
+ public function setPayWx($payWx): StoreGroupOrderEntity
|
|
|
500
|
+ {
|
|
|
501
|
+ $this->payWx = $payWx;
|
|
|
502
|
+ return $this;
|
|
|
503
|
+ }
|
|
|
504
|
+
|
|
|
505
|
+ /**
|
|
|
506
|
+ * @return string
|
|
|
507
|
+ */
|
|
|
508
|
+ public function getFzonePaytype(): string
|
|
|
509
|
+ {
|
|
|
510
|
+ return $this->fzonePaytype;
|
|
|
511
|
+ }
|
|
|
512
|
+
|
|
|
513
|
+ /**
|
|
|
514
|
+ * @param string $fzonePaytype
|
|
|
515
|
+ * @return StoreGroupOrderEntity
|
|
|
516
|
+ */
|
|
|
517
|
+ public function setFzonePaytype(string $fzonePaytype): StoreGroupOrderEntity
|
|
|
518
|
+ {
|
|
|
519
|
+ $this->fzonePaytype = $fzonePaytype;
|
|
|
520
|
+ return $this;
|
|
|
521
|
+ }
|
|
|
522
|
+}
|