|
|
@@ -34,55 +34,90 @@ class ProductAttrValueEntity extends DataEntity
|
|
34
|
34
|
public $stockNum = '0'; // 股权%
|
|
35
|
35
|
public $sharesNum = '0'; // 股票
|
|
36
|
36
|
|
|
|
37
|
+ /**
|
|
|
38
|
+ * @return int
|
|
|
39
|
+ */
|
|
37
|
40
|
public function getProductId(): int
|
|
38
|
41
|
{
|
|
39
|
42
|
return $this->productId;
|
|
40
|
43
|
}
|
|
41
|
44
|
|
|
|
45
|
+ /**
|
|
|
46
|
+ * @param int $productId
|
|
|
47
|
+ * @return ProductAttrValueEntity
|
|
|
48
|
+ */
|
|
42
|
49
|
public function setProductId(int $productId): ProductAttrValueEntity
|
|
43
|
50
|
{
|
|
44
|
51
|
$this->productId = $productId;
|
|
45
|
52
|
return $this;
|
|
46
|
53
|
}
|
|
47
|
54
|
|
|
|
55
|
+ /**
|
|
|
56
|
+ * @return string
|
|
|
57
|
+ */
|
|
48
|
58
|
public function getDetail(): string
|
|
49
|
59
|
{
|
|
50
|
60
|
return $this->detail;
|
|
51
|
61
|
}
|
|
52
|
62
|
|
|
|
63
|
+ /**
|
|
|
64
|
+ * @param string $detail
|
|
|
65
|
+ * @return ProductAttrValueEntity
|
|
|
66
|
+ */
|
|
53
|
67
|
public function setDetail(string $detail): ProductAttrValueEntity
|
|
54
|
68
|
{
|
|
55
|
69
|
$this->detail = $detail;
|
|
56
|
70
|
return $this;
|
|
57
|
71
|
}
|
|
58
|
72
|
|
|
|
73
|
+ /**
|
|
|
74
|
+ * @return string
|
|
|
75
|
+ */
|
|
59
|
76
|
public function getSku(): string
|
|
60
|
77
|
{
|
|
61
|
78
|
return $this->sku;
|
|
62
|
79
|
}
|
|
63
|
80
|
|
|
|
81
|
+ /**
|
|
|
82
|
+ * @param string $sku
|
|
|
83
|
+ * @return ProductAttrValueEntity
|
|
|
84
|
+ */
|
|
64
|
85
|
public function setSku(string $sku): ProductAttrValueEntity
|
|
65
|
86
|
{
|
|
66
|
87
|
$this->sku = $sku;
|
|
67
|
88
|
return $this;
|
|
68
|
89
|
}
|
|
69
|
90
|
|
|
|
91
|
+ /**
|
|
|
92
|
+ * @return int
|
|
|
93
|
+ */
|
|
70
|
94
|
public function getStock(): int
|
|
71
|
95
|
{
|
|
72
|
96
|
return $this->stock;
|
|
73
|
97
|
}
|
|
74
|
98
|
|
|
|
99
|
+ /**
|
|
|
100
|
+ * @param int $stock
|
|
|
101
|
+ * @return ProductAttrValueEntity
|
|
|
102
|
+ */
|
|
75
|
103
|
public function setStock(int $stock): ProductAttrValueEntity
|
|
76
|
104
|
{
|
|
77
|
105
|
$this->stock = $stock;
|
|
78
|
106
|
return $this;
|
|
79
|
107
|
}
|
|
80
|
108
|
|
|
|
109
|
+ /**
|
|
|
110
|
+ * @return int
|
|
|
111
|
+ */
|
|
81
|
112
|
public function getSales(): int
|
|
82
|
113
|
{
|
|
83
|
114
|
return $this->sales;
|
|
84
|
115
|
}
|
|
85
|
116
|
|
|
|
117
|
+ /**
|
|
|
118
|
+ * @param int $sales
|
|
|
119
|
+ * @return ProductAttrValueEntity
|
|
|
120
|
+ */
|
|
86
|
121
|
public function setSales(int $sales): ProductAttrValueEntity
|
|
87
|
122
|
{
|
|
88
|
123
|
$this->sales = $sales;
|
|
|
@@ -90,7 +125,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
90
|
125
|
}
|
|
91
|
126
|
|
|
92
|
127
|
/**
|
|
93
|
|
- * @return null
|
|
|
128
|
+ * @return mixed
|
|
94
|
129
|
*/
|
|
95
|
130
|
public function getImage()
|
|
96
|
131
|
{
|
|
|
@@ -98,7 +133,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
98
|
133
|
}
|
|
99
|
134
|
|
|
100
|
135
|
/**
|
|
101
|
|
- * @param null $image
|
|
|
136
|
+ * @param mixed $image
|
|
102
|
137
|
* @return ProductAttrValueEntity
|
|
103
|
138
|
*/
|
|
104
|
139
|
public function setImage($image)
|
|
|
@@ -107,77 +142,126 @@ class ProductAttrValueEntity extends DataEntity
|
|
107
|
142
|
return $this;
|
|
108
|
143
|
}
|
|
109
|
144
|
|
|
|
145
|
+ /**
|
|
|
146
|
+ * @return string
|
|
|
147
|
+ */
|
|
110
|
148
|
public function getBarCode(): string
|
|
111
|
149
|
{
|
|
112
|
150
|
return $this->barCode;
|
|
113
|
151
|
}
|
|
114
|
152
|
|
|
|
153
|
+ /**
|
|
|
154
|
+ * @param string $barCode
|
|
|
155
|
+ * @return ProductAttrValueEntity
|
|
|
156
|
+ */
|
|
115
|
157
|
public function setBarCode(string $barCode): ProductAttrValueEntity
|
|
116
|
158
|
{
|
|
117
|
159
|
$this->barCode = $barCode;
|
|
118
|
160
|
return $this;
|
|
119
|
161
|
}
|
|
120
|
162
|
|
|
|
163
|
+ /**
|
|
|
164
|
+ * @return float
|
|
|
165
|
+ */
|
|
121
|
166
|
public function getCost(): float
|
|
122
|
167
|
{
|
|
123
|
168
|
return $this->cost;
|
|
124
|
169
|
}
|
|
125
|
170
|
|
|
|
171
|
+ /**
|
|
|
172
|
+ * @param float $cost
|
|
|
173
|
+ * @return ProductAttrValueEntity
|
|
|
174
|
+ */
|
|
126
|
175
|
public function setCost(float $cost): ProductAttrValueEntity
|
|
127
|
176
|
{
|
|
128
|
177
|
$this->cost = $cost;
|
|
129
|
178
|
return $this;
|
|
130
|
179
|
}
|
|
131
|
180
|
|
|
|
181
|
+ /**
|
|
|
182
|
+ * @return float
|
|
|
183
|
+ */
|
|
132
|
184
|
public function getOtPrice(): float
|
|
133
|
185
|
{
|
|
134
|
186
|
return $this->otPrice;
|
|
135
|
187
|
}
|
|
136
|
188
|
|
|
|
189
|
+ /**
|
|
|
190
|
+ * @param float $otPrice
|
|
|
191
|
+ * @return ProductAttrValueEntity
|
|
|
192
|
+ */
|
|
137
|
193
|
public function setOtPrice(float $otPrice): ProductAttrValueEntity
|
|
138
|
194
|
{
|
|
139
|
195
|
$this->otPrice = $otPrice;
|
|
140
|
196
|
return $this;
|
|
141
|
197
|
}
|
|
142
|
198
|
|
|
|
199
|
+ /**
|
|
|
200
|
+ * @return float
|
|
|
201
|
+ */
|
|
143
|
202
|
public function getPrice(): float
|
|
144
|
203
|
{
|
|
145
|
204
|
return $this->price;
|
|
146
|
205
|
}
|
|
147
|
206
|
|
|
|
207
|
+ /**
|
|
|
208
|
+ * @param float $price
|
|
|
209
|
+ * @return ProductAttrValueEntity
|
|
|
210
|
+ */
|
|
148
|
211
|
public function setPrice(float $price): ProductAttrValueEntity
|
|
149
|
212
|
{
|
|
150
|
213
|
$this->price = $price;
|
|
151
|
214
|
return $this;
|
|
152
|
215
|
}
|
|
153
|
216
|
|
|
|
217
|
+ /**
|
|
|
218
|
+ * @return float
|
|
|
219
|
+ */
|
|
154
|
220
|
public function getVolume(): float
|
|
155
|
221
|
{
|
|
156
|
222
|
return $this->volume;
|
|
157
|
223
|
}
|
|
158
|
224
|
|
|
|
225
|
+ /**
|
|
|
226
|
+ * @param float $volume
|
|
|
227
|
+ * @return ProductAttrValueEntity
|
|
|
228
|
+ */
|
|
159
|
229
|
public function setVolume(float $volume): ProductAttrValueEntity
|
|
160
|
230
|
{
|
|
161
|
231
|
$this->volume = $volume;
|
|
162
|
232
|
return $this;
|
|
163
|
233
|
}
|
|
164
|
234
|
|
|
|
235
|
+ /**
|
|
|
236
|
+ * @return float
|
|
|
237
|
+ */
|
|
165
|
238
|
public function getWeight(): float
|
|
166
|
239
|
{
|
|
167
|
240
|
return $this->weight;
|
|
168
|
241
|
}
|
|
169
|
242
|
|
|
|
243
|
+ /**
|
|
|
244
|
+ * @param float $weight
|
|
|
245
|
+ * @return ProductAttrValueEntity
|
|
|
246
|
+ */
|
|
170
|
247
|
public function setWeight(float $weight): ProductAttrValueEntity
|
|
171
|
248
|
{
|
|
172
|
249
|
$this->weight = $weight;
|
|
173
|
250
|
return $this;
|
|
174
|
251
|
}
|
|
175
|
252
|
|
|
|
253
|
+ /**
|
|
|
254
|
+ * @return int
|
|
|
255
|
+ */
|
|
176
|
256
|
public function getType(): int
|
|
177
|
257
|
{
|
|
178
|
258
|
return $this->type;
|
|
179
|
259
|
}
|
|
180
|
260
|
|
|
|
261
|
+ /**
|
|
|
262
|
+ * @param int $type
|
|
|
263
|
+ * @return ProductAttrValueEntity
|
|
|
264
|
+ */
|
|
181
|
265
|
public function setType(int $type): ProductAttrValueEntity
|
|
182
|
266
|
{
|
|
183
|
267
|
$this->type = $type;
|
|
|
@@ -185,7 +269,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
185
|
269
|
}
|
|
186
|
270
|
|
|
187
|
271
|
/**
|
|
188
|
|
- * @return null
|
|
|
272
|
+ * @return mixed
|
|
189
|
273
|
*/
|
|
190
|
274
|
public function getExtensionOne()
|
|
191
|
275
|
{
|
|
|
@@ -193,7 +277,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
193
|
277
|
}
|
|
194
|
278
|
|
|
195
|
279
|
/**
|
|
196
|
|
- * @param null $extensionOne
|
|
|
280
|
+ * @param mixed $extensionOne
|
|
197
|
281
|
* @return ProductAttrValueEntity
|
|
198
|
282
|
*/
|
|
199
|
283
|
public function setExtensionOne($extensionOne)
|
|
|
@@ -203,15 +287,15 @@ class ProductAttrValueEntity extends DataEntity
|
|
203
|
287
|
}
|
|
204
|
288
|
|
|
205
|
289
|
/**
|
|
206
|
|
- * @return null
|
|
|
290
|
+ * @return mixed
|
|
207
|
291
|
*/
|
|
208
|
292
|
public function getExtensionTwo()
|
|
209
|
293
|
{
|
|
210
|
|
- return $this->extensionTwo;
|
|
|
294
|
+ return is_null($this->extensionTwo) ? 0.00 : $this->extensionTwo;
|
|
211
|
295
|
}
|
|
212
|
296
|
|
|
213
|
297
|
/**
|
|
214
|
|
- * @param null $extensionTwo
|
|
|
298
|
+ * @param mixed $extensionTwo
|
|
215
|
299
|
* @return ProductAttrValueEntity
|
|
216
|
300
|
*/
|
|
217
|
301
|
public function setExtensionTwo($extensionTwo)
|
|
|
@@ -220,22 +304,36 @@ class ProductAttrValueEntity extends DataEntity
|
|
220
|
304
|
return $this;
|
|
221
|
305
|
}
|
|
222
|
306
|
|
|
|
307
|
+ /**
|
|
|
308
|
+ * @return string
|
|
|
309
|
+ */
|
|
223
|
310
|
public function getUnique(): string
|
|
224
|
311
|
{
|
|
225
|
312
|
return $this->unique;
|
|
226
|
313
|
}
|
|
227
|
314
|
|
|
|
315
|
+ /**
|
|
|
316
|
+ * @param string $unique
|
|
|
317
|
+ * @return ProductAttrValueEntity
|
|
|
318
|
+ */
|
|
228
|
319
|
public function setUnique(string $unique): ProductAttrValueEntity
|
|
229
|
320
|
{
|
|
230
|
321
|
$this->unique = $unique;
|
|
231
|
322
|
return $this;
|
|
232
|
323
|
}
|
|
233
|
324
|
|
|
|
325
|
+ /**
|
|
|
326
|
+ * @return float
|
|
|
327
|
+ */
|
|
234
|
328
|
public function getDacangPrice(): float
|
|
235
|
329
|
{
|
|
236
|
330
|
return $this->dacangPrice;
|
|
237
|
331
|
}
|
|
238
|
332
|
|
|
|
333
|
+ /**
|
|
|
334
|
+ * @param float $dacangPrice
|
|
|
335
|
+ * @return ProductAttrValueEntity
|
|
|
336
|
+ */
|
|
239
|
337
|
public function setDacangPrice(float $dacangPrice): ProductAttrValueEntity
|
|
240
|
338
|
{
|
|
241
|
339
|
$this->dacangPrice = $dacangPrice;
|
|
|
@@ -243,7 +341,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
243
|
341
|
}
|
|
244
|
342
|
|
|
245
|
343
|
/**
|
|
246
|
|
- * @return null
|
|
|
344
|
+ * @return mixed
|
|
247
|
345
|
*/
|
|
248
|
346
|
public function getCostPrice()
|
|
249
|
347
|
{
|
|
|
@@ -251,7 +349,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
251
|
349
|
}
|
|
252
|
350
|
|
|
253
|
351
|
/**
|
|
254
|
|
- * @param null $costPrice
|
|
|
352
|
+ * @param mixed $costPrice
|
|
255
|
353
|
* @return ProductAttrValueEntity
|
|
256
|
354
|
*/
|
|
257
|
355
|
public function setCostPrice($costPrice)
|
|
|
@@ -261,7 +359,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
261
|
359
|
}
|
|
262
|
360
|
|
|
263
|
361
|
/**
|
|
264
|
|
- * @return null
|
|
|
362
|
+ * @return mixed
|
|
265
|
363
|
*/
|
|
266
|
364
|
public function getGongSkuId()
|
|
267
|
365
|
{
|
|
|
@@ -269,7 +367,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
269
|
367
|
}
|
|
270
|
368
|
|
|
271
|
369
|
/**
|
|
272
|
|
- * @param null $gongSkuId
|
|
|
370
|
+ * @param mixed $gongSkuId
|
|
273
|
371
|
* @return ProductAttrValueEntity
|
|
274
|
372
|
*/
|
|
275
|
373
|
public function setGongSkuId($gongSkuId)
|
|
|
@@ -279,7 +377,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
279
|
377
|
}
|
|
280
|
378
|
|
|
281
|
379
|
/**
|
|
282
|
|
- * @return null
|
|
|
380
|
+ * @return mixed
|
|
283
|
381
|
*/
|
|
284
|
382
|
public function getGongMerProfit()
|
|
285
|
383
|
{
|
|
|
@@ -287,7 +385,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
287
|
385
|
}
|
|
288
|
386
|
|
|
289
|
387
|
/**
|
|
290
|
|
- * @param null $gongMerProfit
|
|
|
388
|
+ * @param mixed $gongMerProfit
|
|
291
|
389
|
* @return ProductAttrValueEntity
|
|
292
|
390
|
*/
|
|
293
|
391
|
public function setGongMerProfit($gongMerProfit)
|
|
|
@@ -297,7 +395,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
297
|
395
|
}
|
|
298
|
396
|
|
|
299
|
397
|
/**
|
|
300
|
|
- * @return null
|
|
|
398
|
+ * @return mixed
|
|
301
|
399
|
*/
|
|
302
|
400
|
public function getGongPension()
|
|
303
|
401
|
{
|
|
|
@@ -305,7 +403,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
305
|
403
|
}
|
|
306
|
404
|
|
|
307
|
405
|
/**
|
|
308
|
|
- * @param null $gongPension
|
|
|
406
|
+ * @param mixed $gongPension
|
|
309
|
407
|
* @return ProductAttrValueEntity
|
|
310
|
408
|
*/
|
|
311
|
409
|
public function setGongPension($gongPension)
|
|
|
@@ -315,7 +413,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
315
|
413
|
}
|
|
316
|
414
|
|
|
317
|
415
|
/**
|
|
318
|
|
- * @return null
|
|
|
416
|
+ * @return mixed
|
|
319
|
417
|
*/
|
|
320
|
418
|
public function getGongMarketPrice()
|
|
321
|
419
|
{
|
|
|
@@ -323,7 +421,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
323
|
421
|
}
|
|
324
|
422
|
|
|
325
|
423
|
/**
|
|
326
|
|
- * @param null $gongMarketPrice
|
|
|
424
|
+ * @param mixed $gongMarketPrice
|
|
327
|
425
|
* @return ProductAttrValueEntity
|
|
328
|
426
|
*/
|
|
329
|
427
|
public function setGongMarketPrice($gongMarketPrice)
|
|
|
@@ -333,7 +431,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
333
|
431
|
}
|
|
334
|
432
|
|
|
335
|
433
|
/**
|
|
336
|
|
- * @return null
|
|
|
434
|
+ * @return mixed
|
|
337
|
435
|
*/
|
|
338
|
436
|
public function getPlateMerProfit()
|
|
339
|
437
|
{
|
|
|
@@ -341,7 +439,7 @@ class ProductAttrValueEntity extends DataEntity
|
|
341
|
439
|
}
|
|
342
|
440
|
|
|
343
|
441
|
/**
|
|
344
|
|
- * @param null $plateMerProfit
|
|
|
442
|
+ * @param mixed $plateMerProfit
|
|
345
|
443
|
* @return ProductAttrValueEntity
|
|
346
|
444
|
*/
|
|
347
|
445
|
public function setPlateMerProfit($plateMerProfit)
|
|
|
@@ -350,44 +448,72 @@ class ProductAttrValueEntity extends DataEntity
|
|
350
|
448
|
return $this;
|
|
351
|
449
|
}
|
|
352
|
450
|
|
|
|
451
|
+ /**
|
|
|
452
|
+ * @return string
|
|
|
453
|
+ */
|
|
353
|
454
|
public function getPensionNum(): string
|
|
354
|
455
|
{
|
|
355
|
456
|
return $this->pensionNum;
|
|
356
|
457
|
}
|
|
357
|
458
|
|
|
|
459
|
+ /**
|
|
|
460
|
+ * @param string $pensionNum
|
|
|
461
|
+ * @return ProductAttrValueEntity
|
|
|
462
|
+ */
|
|
358
|
463
|
public function setPensionNum(string $pensionNum): ProductAttrValueEntity
|
|
359
|
464
|
{
|
|
360
|
465
|
$this->pensionNum = $pensionNum;
|
|
361
|
466
|
return $this;
|
|
362
|
467
|
}
|
|
363
|
468
|
|
|
|
469
|
+ /**
|
|
|
470
|
+ * @return string
|
|
|
471
|
+ */
|
|
364
|
472
|
public function getShareNum(): string
|
|
365
|
473
|
{
|
|
366
|
474
|
return $this->shareNum;
|
|
367
|
475
|
}
|
|
368
|
476
|
|
|
|
477
|
+ /**
|
|
|
478
|
+ * @param string $shareNum
|
|
|
479
|
+ * @return ProductAttrValueEntity
|
|
|
480
|
+ */
|
|
369
|
481
|
public function setShareNum(string $shareNum): ProductAttrValueEntity
|
|
370
|
482
|
{
|
|
371
|
483
|
$this->shareNum = $shareNum;
|
|
372
|
484
|
return $this;
|
|
373
|
485
|
}
|
|
374
|
486
|
|
|
|
487
|
+ /**
|
|
|
488
|
+ * @return string
|
|
|
489
|
+ */
|
|
375
|
490
|
public function getStockNum(): string
|
|
376
|
491
|
{
|
|
377
|
492
|
return $this->stockNum;
|
|
378
|
493
|
}
|
|
379
|
494
|
|
|
|
495
|
+ /**
|
|
|
496
|
+ * @param string $stockNum
|
|
|
497
|
+ * @return ProductAttrValueEntity
|
|
|
498
|
+ */
|
|
380
|
499
|
public function setStockNum(string $stockNum): ProductAttrValueEntity
|
|
381
|
500
|
{
|
|
382
|
501
|
$this->stockNum = $stockNum;
|
|
383
|
502
|
return $this;
|
|
384
|
503
|
}
|
|
385
|
504
|
|
|
|
505
|
+ /**
|
|
|
506
|
+ * @return string
|
|
|
507
|
+ */
|
|
386
|
508
|
public function getSharesNum(): string
|
|
387
|
509
|
{
|
|
388
|
510
|
return $this->sharesNum;
|
|
389
|
511
|
}
|
|
390
|
512
|
|
|
|
513
|
+ /**
|
|
|
514
|
+ * @param string $sharesNum
|
|
|
515
|
+ * @return ProductAttrValueEntity
|
|
|
516
|
+ */
|
|
391
|
517
|
public function setSharesNum(string $sharesNum): ProductAttrValueEntity
|
|
392
|
518
|
{
|
|
393
|
519
|
$this->sharesNum = $sharesNum;
|