ProductAttrValueEntity.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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. public function getProductId(): int
  34. {
  35. return $this->productId;
  36. }
  37. public function setProductId(int $productId): ProductAttrValueEntity
  38. {
  39. $this->productId = $productId;
  40. return $this;
  41. }
  42. public function getDetail(): string
  43. {
  44. return $this->detail;
  45. }
  46. public function setDetail(string $detail): ProductAttrValueEntity
  47. {
  48. $this->detail = $detail;
  49. return $this;
  50. }
  51. public function getSku(): string
  52. {
  53. return $this->sku;
  54. }
  55. public function setSku(string $sku): ProductAttrValueEntity
  56. {
  57. $this->sku = $sku;
  58. return $this;
  59. }
  60. public function getStock(): int
  61. {
  62. return $this->stock;
  63. }
  64. public function setStock(int $stock): ProductAttrValueEntity
  65. {
  66. $this->stock = $stock;
  67. return $this;
  68. }
  69. public function getSales(): int
  70. {
  71. return $this->sales;
  72. }
  73. public function setSales(int $sales): ProductAttrValueEntity
  74. {
  75. $this->sales = $sales;
  76. return $this;
  77. }
  78. /**
  79. * @return null
  80. */
  81. public function getImage()
  82. {
  83. return $this->image;
  84. }
  85. /**
  86. * @param null $image
  87. * @return ProductAttrValueEntity
  88. */
  89. public function setImage($image)
  90. {
  91. $this->image = $image;
  92. return $this;
  93. }
  94. public function getBarCode(): string
  95. {
  96. return $this->barCode;
  97. }
  98. public function setBarCode(string $barCode): ProductAttrValueEntity
  99. {
  100. $this->barCode = $barCode;
  101. return $this;
  102. }
  103. public function getCost(): float
  104. {
  105. return $this->cost;
  106. }
  107. public function setCost(float $cost): ProductAttrValueEntity
  108. {
  109. $this->cost = $cost;
  110. return $this;
  111. }
  112. public function getOtPrice(): float
  113. {
  114. return $this->otPrice;
  115. }
  116. public function setOtPrice(float $otPrice): ProductAttrValueEntity
  117. {
  118. $this->otPrice = $otPrice;
  119. return $this;
  120. }
  121. public function getPrice(): float
  122. {
  123. return $this->price;
  124. }
  125. public function setPrice(float $price): ProductAttrValueEntity
  126. {
  127. $this->price = $price;
  128. return $this;
  129. }
  130. public function getVolume(): float
  131. {
  132. return $this->volume;
  133. }
  134. public function setVolume(float $volume): ProductAttrValueEntity
  135. {
  136. $this->volume = $volume;
  137. return $this;
  138. }
  139. public function getWeight(): float
  140. {
  141. return $this->weight;
  142. }
  143. public function setWeight(float $weight): ProductAttrValueEntity
  144. {
  145. $this->weight = $weight;
  146. return $this;
  147. }
  148. public function getType(): int
  149. {
  150. return $this->type;
  151. }
  152. public function setType(int $type): ProductAttrValueEntity
  153. {
  154. $this->type = $type;
  155. return $this;
  156. }
  157. /**
  158. * @return null
  159. */
  160. public function getExtensionOne()
  161. {
  162. return $this->extensionOne;
  163. }
  164. /**
  165. * @param null $extensionOne
  166. * @return ProductAttrValueEntity
  167. */
  168. public function setExtensionOne($extensionOne)
  169. {
  170. $this->extensionOne = $extensionOne;
  171. return $this;
  172. }
  173. /**
  174. * @return null
  175. */
  176. public function getExtensionTwo()
  177. {
  178. return $this->extensionTwo;
  179. }
  180. /**
  181. * @param null $extensionTwo
  182. * @return ProductAttrValueEntity
  183. */
  184. public function setExtensionTwo($extensionTwo)
  185. {
  186. $this->extensionTwo = $extensionTwo;
  187. return $this;
  188. }
  189. public function getUnique(): string
  190. {
  191. return $this->unique;
  192. }
  193. public function setUnique(string $unique): ProductAttrValueEntity
  194. {
  195. $this->unique = $unique;
  196. return $this;
  197. }
  198. public function getDacangPrice(): float
  199. {
  200. return $this->dacangPrice;
  201. }
  202. public function setDacangPrice(float $dacangPrice): ProductAttrValueEntity
  203. {
  204. $this->dacangPrice = $dacangPrice;
  205. return $this;
  206. }
  207. /**
  208. * @return null
  209. */
  210. public function getCostPrice()
  211. {
  212. return $this->costPrice;
  213. }
  214. /**
  215. * @param null $costPrice
  216. * @return ProductAttrValueEntity
  217. */
  218. public function setCostPrice($costPrice)
  219. {
  220. $this->costPrice = $costPrice;
  221. return $this;
  222. }
  223. /**
  224. * @return null
  225. */
  226. public function getGongSkuId()
  227. {
  228. return $this->gongSkuId;
  229. }
  230. /**
  231. * @param null $gongSkuId
  232. * @return ProductAttrValueEntity
  233. */
  234. public function setGongSkuId($gongSkuId)
  235. {
  236. $this->gongSkuId = $gongSkuId;
  237. return $this;
  238. }
  239. /**
  240. * @return null
  241. */
  242. public function getGongMerProfit()
  243. {
  244. return $this->gongMerProfit;
  245. }
  246. /**
  247. * @param null $gongMerProfit
  248. * @return ProductAttrValueEntity
  249. */
  250. public function setGongMerProfit($gongMerProfit)
  251. {
  252. $this->gongMerProfit = $gongMerProfit;
  253. return $this;
  254. }
  255. /**
  256. * @return null
  257. */
  258. public function getGongPension()
  259. {
  260. return $this->gongPension;
  261. }
  262. /**
  263. * @param null $gongPension
  264. * @return ProductAttrValueEntity
  265. */
  266. public function setGongPension($gongPension)
  267. {
  268. $this->gongPension = $gongPension;
  269. return $this;
  270. }
  271. /**
  272. * @return null
  273. */
  274. public function getGongMarketPrice()
  275. {
  276. return $this->gongMarketPrice;
  277. }
  278. /**
  279. * @param null $gongMarketPrice
  280. * @return ProductAttrValueEntity
  281. */
  282. public function setGongMarketPrice($gongMarketPrice)
  283. {
  284. $this->gongMarketPrice = $gongMarketPrice;
  285. return $this;
  286. }
  287. /**
  288. * @return null
  289. */
  290. public function getPlateMerProfit()
  291. {
  292. return $this->plateMerProfit;
  293. }
  294. /**
  295. * @param null $plateMerProfit
  296. * @return ProductAttrValueEntity
  297. */
  298. public function setPlateMerProfit($plateMerProfit)
  299. {
  300. $this->plateMerProfit = $plateMerProfit;
  301. return $this;
  302. }
  303. public function getPensionNum(): string
  304. {
  305. return $this->pensionNum;
  306. }
  307. public function setPensionNum(string $pensionNum): ProductAttrValueEntity
  308. {
  309. $this->pensionNum = $pensionNum;
  310. return $this;
  311. }
  312. public function getShareNum(): string
  313. {
  314. return $this->shareNum;
  315. }
  316. public function setShareNum(string $shareNum): ProductAttrValueEntity
  317. {
  318. $this->shareNum = $shareNum;
  319. return $this;
  320. }
  321. public function getStockNum(): string
  322. {
  323. return $this->stockNum;
  324. }
  325. public function setStockNum(string $stockNum): ProductAttrValueEntity
  326. {
  327. $this->stockNum = $stockNum;
  328. return $this;
  329. }
  330. public function getSharesNum(): string
  331. {
  332. return $this->sharesNum;
  333. }
  334. public function setSharesNum(string $sharesNum): ProductAttrValueEntity
  335. {
  336. $this->sharesNum = $sharesNum;
  337. return $this;
  338. }
  339. }