ProductAttrValueEntity.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. <?php
  2. namespace app\entity\data\store;
  3. use app\entity\data\DataEntity;
  4. class ProductAttrValueEntity extends DataEntity
  5. {
  6. public $productId = 0; // 商品ID
  7. public $detail = ''; // 商品属性详细
  8. public $sku = ''; // 商品属性索引值
  9. public $stock = 0; // 属性对应的库存
  10. public $sales = 0; // 销量
  11. public $image = null; // 图片
  12. public $barCode = ''; // 产品条码
  13. public $cost = 0.00; // 成本价
  14. public $otPrice = 0.00; // 原价
  15. public $price = 0.00; // 价格
  16. public $volume = 0.00; // 体积
  17. public $weight = 0.00; // 重量
  18. public $type = 0; // 活动类型 0=商品
  19. public $extensionOne = null; // 养老金
  20. public $extensionTwo = null; // 二级佣金
  21. public $unique = ''; // 唯一值
  22. public $dacangPrice = 0.00; // 大仓会员价
  23. public $costPrice = null; // 供应链成本价
  24. public $gongSkuId = null; // 供应链sku_id
  25. public $gongMerProfit = null; // 供应链创客利润
  26. public $gongPension = null; // 供应链养老金
  27. public $gongMarketPrice = null; // 供应链销售价
  28. public $plateMerProfit = null; // 商户创客利润
  29. public $pensionNum = '0'; // 养老金%
  30. public $shareNum = '0'; // 分享奖%
  31. public $stockNum = '0'; // 股权%
  32. public $sharesNum = '0'; // 股票
  33. /**
  34. * @return int
  35. */
  36. public function getProductId(): int
  37. {
  38. return $this->productId;
  39. }
  40. /**
  41. * @param int $productId
  42. * @return ProductAttrValueEntity
  43. */
  44. public function setProductId(int $productId): ProductAttrValueEntity
  45. {
  46. $this->productId = $productId;
  47. return $this;
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getDetail(): string
  53. {
  54. return $this->detail;
  55. }
  56. /**
  57. * @param string $detail
  58. * @return ProductAttrValueEntity
  59. */
  60. public function setDetail(string $detail): ProductAttrValueEntity
  61. {
  62. $this->detail = $detail;
  63. return $this;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getSku(): string
  69. {
  70. return $this->sku;
  71. }
  72. /**
  73. * @param string $sku
  74. * @return ProductAttrValueEntity
  75. */
  76. public function setSku(string $sku): ProductAttrValueEntity
  77. {
  78. $this->sku = $sku;
  79. return $this;
  80. }
  81. /**
  82. * @return int
  83. */
  84. public function getStock(): int
  85. {
  86. return $this->stock;
  87. }
  88. /**
  89. * @param int $stock
  90. * @return ProductAttrValueEntity
  91. */
  92. public function setStock(int $stock): ProductAttrValueEntity
  93. {
  94. $this->stock = $stock;
  95. return $this;
  96. }
  97. /**
  98. * @return int
  99. */
  100. public function getSales(): int
  101. {
  102. return $this->sales;
  103. }
  104. /**
  105. * @param int $sales
  106. * @return ProductAttrValueEntity
  107. */
  108. public function setSales(int $sales): ProductAttrValueEntity
  109. {
  110. $this->sales = $sales;
  111. return $this;
  112. }
  113. /**
  114. * @return mixed
  115. */
  116. public function getImage()
  117. {
  118. return $this->image;
  119. }
  120. /**
  121. * @param mixed $image
  122. * @return ProductAttrValueEntity
  123. */
  124. public function setImage($image)
  125. {
  126. $this->image = $image;
  127. return $this;
  128. }
  129. /**
  130. * @return string
  131. */
  132. public function getBarCode(): string
  133. {
  134. return $this->barCode;
  135. }
  136. /**
  137. * @param string $barCode
  138. * @return ProductAttrValueEntity
  139. */
  140. public function setBarCode(string $barCode): ProductAttrValueEntity
  141. {
  142. $this->barCode = $barCode;
  143. return $this;
  144. }
  145. /**
  146. * @return float
  147. */
  148. public function getCost(): float
  149. {
  150. return $this->cost;
  151. }
  152. /**
  153. * @param float $cost
  154. * @return ProductAttrValueEntity
  155. */
  156. public function setCost(float $cost): ProductAttrValueEntity
  157. {
  158. $this->cost = $cost;
  159. return $this;
  160. }
  161. /**
  162. * @return float
  163. */
  164. public function getOtPrice(): float
  165. {
  166. return $this->otPrice;
  167. }
  168. /**
  169. * @param float $otPrice
  170. * @return ProductAttrValueEntity
  171. */
  172. public function setOtPrice(float $otPrice): ProductAttrValueEntity
  173. {
  174. $this->otPrice = $otPrice;
  175. return $this;
  176. }
  177. /**
  178. * @return float
  179. */
  180. public function getPrice(): float
  181. {
  182. return $this->price;
  183. }
  184. /**
  185. * @param float $price
  186. * @return ProductAttrValueEntity
  187. */
  188. public function setPrice(float $price): ProductAttrValueEntity
  189. {
  190. $this->price = $price;
  191. return $this;
  192. }
  193. /**
  194. * @return float
  195. */
  196. public function getVolume(): float
  197. {
  198. return $this->volume;
  199. }
  200. /**
  201. * @param float $volume
  202. * @return ProductAttrValueEntity
  203. */
  204. public function setVolume(float $volume): ProductAttrValueEntity
  205. {
  206. $this->volume = $volume;
  207. return $this;
  208. }
  209. /**
  210. * @return float
  211. */
  212. public function getWeight(): float
  213. {
  214. return $this->weight;
  215. }
  216. /**
  217. * @param float $weight
  218. * @return ProductAttrValueEntity
  219. */
  220. public function setWeight(float $weight): ProductAttrValueEntity
  221. {
  222. $this->weight = $weight;
  223. return $this;
  224. }
  225. /**
  226. * @return int
  227. */
  228. public function getType(): int
  229. {
  230. return $this->type;
  231. }
  232. /**
  233. * @param int $type
  234. * @return ProductAttrValueEntity
  235. */
  236. public function setType(int $type): ProductAttrValueEntity
  237. {
  238. $this->type = $type;
  239. return $this;
  240. }
  241. /**
  242. * @return mixed
  243. */
  244. public function getExtensionOne()
  245. {
  246. return $this->extensionOne;
  247. }
  248. /**
  249. * @param mixed $extensionOne
  250. * @return ProductAttrValueEntity
  251. */
  252. public function setExtensionOne($extensionOne)
  253. {
  254. $this->extensionOne = $extensionOne;
  255. return $this;
  256. }
  257. /**
  258. * @return mixed
  259. */
  260. public function getExtensionTwo()
  261. {
  262. return is_null($this->extensionTwo) ? 0.00 : $this->extensionTwo;
  263. }
  264. /**
  265. * @param mixed $extensionTwo
  266. * @return ProductAttrValueEntity
  267. */
  268. public function setExtensionTwo($extensionTwo)
  269. {
  270. $this->extensionTwo = $extensionTwo;
  271. return $this;
  272. }
  273. /**
  274. * @return string
  275. */
  276. public function getUnique(): string
  277. {
  278. return $this->unique;
  279. }
  280. /**
  281. * @param string $unique
  282. * @return ProductAttrValueEntity
  283. */
  284. public function setUnique(string $unique): ProductAttrValueEntity
  285. {
  286. $this->unique = $unique;
  287. return $this;
  288. }
  289. /**
  290. * @return float
  291. */
  292. public function getDacangPrice(): float
  293. {
  294. return $this->dacangPrice;
  295. }
  296. /**
  297. * @param float $dacangPrice
  298. * @return ProductAttrValueEntity
  299. */
  300. public function setDacangPrice(float $dacangPrice): ProductAttrValueEntity
  301. {
  302. $this->dacangPrice = $dacangPrice;
  303. return $this;
  304. }
  305. /**
  306. * @return mixed
  307. */
  308. public function getCostPrice()
  309. {
  310. return $this->costPrice;
  311. }
  312. /**
  313. * @param mixed $costPrice
  314. * @return ProductAttrValueEntity
  315. */
  316. public function setCostPrice($costPrice)
  317. {
  318. $this->costPrice = $costPrice;
  319. return $this;
  320. }
  321. /**
  322. * @return mixed
  323. */
  324. public function getGongSkuId()
  325. {
  326. return $this->gongSkuId;
  327. }
  328. /**
  329. * @param mixed $gongSkuId
  330. * @return ProductAttrValueEntity
  331. */
  332. public function setGongSkuId($gongSkuId)
  333. {
  334. $this->gongSkuId = $gongSkuId;
  335. return $this;
  336. }
  337. /**
  338. * @return mixed
  339. */
  340. public function getGongMerProfit()
  341. {
  342. return $this->gongMerProfit;
  343. }
  344. /**
  345. * @param mixed $gongMerProfit
  346. * @return ProductAttrValueEntity
  347. */
  348. public function setGongMerProfit($gongMerProfit)
  349. {
  350. $this->gongMerProfit = $gongMerProfit;
  351. return $this;
  352. }
  353. /**
  354. * @return mixed
  355. */
  356. public function getGongPension()
  357. {
  358. return $this->gongPension;
  359. }
  360. /**
  361. * @param mixed $gongPension
  362. * @return ProductAttrValueEntity
  363. */
  364. public function setGongPension($gongPension)
  365. {
  366. $this->gongPension = $gongPension;
  367. return $this;
  368. }
  369. /**
  370. * @return mixed
  371. */
  372. public function getGongMarketPrice()
  373. {
  374. return $this->gongMarketPrice;
  375. }
  376. /**
  377. * @param mixed $gongMarketPrice
  378. * @return ProductAttrValueEntity
  379. */
  380. public function setGongMarketPrice($gongMarketPrice)
  381. {
  382. $this->gongMarketPrice = $gongMarketPrice;
  383. return $this;
  384. }
  385. /**
  386. * @return mixed
  387. */
  388. public function getPlateMerProfit()
  389. {
  390. return $this->plateMerProfit;
  391. }
  392. /**
  393. * @param mixed $plateMerProfit
  394. * @return ProductAttrValueEntity
  395. */
  396. public function setPlateMerProfit($plateMerProfit)
  397. {
  398. $this->plateMerProfit = $plateMerProfit;
  399. return $this;
  400. }
  401. /**
  402. * @return string
  403. */
  404. public function getPensionNum(): string
  405. {
  406. return $this->pensionNum;
  407. }
  408. /**
  409. * @param string $pensionNum
  410. * @return ProductAttrValueEntity
  411. */
  412. public function setPensionNum(string $pensionNum): ProductAttrValueEntity
  413. {
  414. $this->pensionNum = $pensionNum;
  415. return $this;
  416. }
  417. /**
  418. * @return string
  419. */
  420. public function getShareNum(): string
  421. {
  422. return $this->shareNum;
  423. }
  424. /**
  425. * @param string $shareNum
  426. * @return ProductAttrValueEntity
  427. */
  428. public function setShareNum(string $shareNum): ProductAttrValueEntity
  429. {
  430. $this->shareNum = $shareNum;
  431. return $this;
  432. }
  433. /**
  434. * @return string
  435. */
  436. public function getStockNum(): string
  437. {
  438. return $this->stockNum;
  439. }
  440. /**
  441. * @param string $stockNum
  442. * @return ProductAttrValueEntity
  443. */
  444. public function setStockNum(string $stockNum): ProductAttrValueEntity
  445. {
  446. $this->stockNum = $stockNum;
  447. return $this;
  448. }
  449. /**
  450. * @return string
  451. */
  452. public function getSharesNum(): string
  453. {
  454. return $this->sharesNum;
  455. }
  456. /**
  457. * @param string $sharesNum
  458. * @return ProductAttrValueEntity
  459. */
  460. public function setSharesNum(string $sharesNum): ProductAttrValueEntity
  461. {
  462. $this->sharesNum = $sharesNum;
  463. return $this;
  464. }
  465. }