ProductEntity.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <?php
  2. namespace app\entity\data\store;
  3. use app\entity\data\DataEntity;
  4. class ProductEntity extends DataEntity
  5. {
  6. public $productId = 0; // 商品id
  7. public $merId = 0; // 商户Id
  8. public $image = ''; // 商品图片
  9. public $sliderImage = ''; // 轮播图
  10. public $storeName = ''; // 商品名称
  11. public $storeInfo = ''; // 商品简介
  12. public $keyword = ''; // 关键字
  13. public $barCode = ''; // 产品条码(一维码)
  14. public $brandId = null; // 品牌 id
  15. public $isShow = 1; // 商户状态(0:未上架,1:上架)
  16. public $status = 0; // 管理员状态(0:审核中,1:审核通过 -1: 未通过 -2: 下架)
  17. public $isDel = 0; // 是否删除
  18. public $cateId = 0; // 分类id
  19. public $unitName = ''; // 单位名
  20. public $sort = 0; // 排序
  21. public $rank = 0; // 总后台排序
  22. public $sales = 0; // 销量
  23. public $price = null; // 最低价格
  24. public $cost = null; // 成本价
  25. public $otPrice = null; // 原价
  26. public $stock = 0; // 总库存
  27. public $isHot = 0; // 是否热卖
  28. public $isBenefit = 0; // 促销单品
  29. public $isBest = 0; // 是否精品
  30. public $isNew = 0; // 是否新品
  31. public $isGood = 0; // 是否优品推荐
  32. public $productType = 0; // 0.普通商品 1.秒杀商品
  33. public $ficti = 100; // 虚拟销量
  34. public $browse = 0; // 浏览量
  35. public $codePath = ''; // 产品二维码地址(用户小程序海报)
  36. public $videoLink = ''; // 主图视频链接
  37. public $tempId = 1; // 运费模板ID
  38. public $specType = 0; // 规格 0单 1多
  39. public $extensionType = 0; // 佣金比例 0.系统,1.自定义
  40. public $refusal = null; // 审核拒绝理由
  41. public $rate = 5; // 评价分数
  42. public $replyCount = 0; // 评论数
  43. public $merStatus = 1; // 商铺状态是否 1.正常 0. 非正常
  44. public $giveCouponIds = null; // 赠送优惠券
  45. public $isGiftBag = 0; // 是否为礼包
  46. public $createTime = null; // 添加时间
  47. public $careCount = null; // 收藏数
  48. public $isUsed = 1; // 显示/隐藏
  49. public $oldProductId = 0; // 原商品ID
  50. public $volunteer = 0; // 志愿者商品
  51. public $type = 1; // 商品类型:1:普通商品。2:爆款商品。3:消费积分商品
  52. public $pension = null; // 养老金(非百分比)特定商品类型可用
  53. public $commission = '0'; // 返佣(百分比)特定类型商品可用
  54. public $dcId = 0; // 所属大仓ID
  55. public $dcPrice = null; // 大仓价格
  56. public $seckill = 0; // 是否秒杀 1是 0不是
  57. public $isHide = 0; // 秒杀 1不显示 0显示
  58. public $spuId = null; // 供应链商品ID
  59. public $costPrice = null; // 成本价格
  60. public $gongSkuId = null; // 供应商SKU ID
  61. public $plateMerProfit = null; // 平台创客利润
  62. public $yanglaojinScale = null; // 养老金比例:养老金/销售价
  63. public $pensionIs = 0; // 养老金单独设置是否开启 0-不开 1-开
  64. public $shareIs = 0; // 分享奖单独设置是否开启 0-不开 1-开
  65. public $concessionPri = 0.00; // 商品分润(商家让利)
  66. public $argument = null; // 下架说明理由
  67. public $isStatus = 0; // 0系统下架 1手动下架
  68. public function getProductId(): int
  69. {
  70. return $this->productId;
  71. }
  72. public function setProductId(int $productId): ProductEntity
  73. {
  74. $this->productId = $productId;
  75. return $this;
  76. }
  77. public function getMerId(): int
  78. {
  79. return $this->merId;
  80. }
  81. public function setMerId(int $merId): ProductEntity
  82. {
  83. $this->merId = $merId;
  84. return $this;
  85. }
  86. public function getImage(): string
  87. {
  88. return $this->image;
  89. }
  90. public function setImage(string $image): ProductEntity
  91. {
  92. $this->image = $image;
  93. return $this;
  94. }
  95. public function getSliderImage(): string
  96. {
  97. return $this->sliderImage;
  98. }
  99. public function setSliderImage(string $sliderImage): ProductEntity
  100. {
  101. $this->sliderImage = $sliderImage;
  102. return $this;
  103. }
  104. public function getStoreName(): string
  105. {
  106. return $this->storeName;
  107. }
  108. public function setStoreName(string $storeName): ProductEntity
  109. {
  110. $this->storeName = $storeName;
  111. return $this;
  112. }
  113. public function getStoreInfo(): string
  114. {
  115. return $this->storeInfo;
  116. }
  117. public function setStoreInfo(string $storeInfo): ProductEntity
  118. {
  119. $this->storeInfo = $storeInfo;
  120. return $this;
  121. }
  122. public function getKeyword(): string
  123. {
  124. return $this->keyword;
  125. }
  126. public function setKeyword(string $keyword): ProductEntity
  127. {
  128. $this->keyword = $keyword;
  129. return $this;
  130. }
  131. public function getBarCode(): string
  132. {
  133. return $this->barCode;
  134. }
  135. public function setBarCode(string $barCode): ProductEntity
  136. {
  137. $this->barCode = $barCode;
  138. return $this;
  139. }
  140. /**
  141. * @return mixed
  142. */
  143. public function getBrandId()
  144. {
  145. return $this->brandId;
  146. }
  147. /**
  148. * @param mixed $brandId
  149. * @return ProductEntity
  150. */
  151. public function setBrandId($brandId)
  152. {
  153. $this->brandId = $brandId;
  154. return $this;
  155. }
  156. public function getIsShow(): int
  157. {
  158. return $this->isShow;
  159. }
  160. public function setIsShow(int $isShow): ProductEntity
  161. {
  162. $this->isShow = $isShow;
  163. return $this;
  164. }
  165. public function getStatus(): int
  166. {
  167. return $this->status;
  168. }
  169. public function setStatus(int $status): ProductEntity
  170. {
  171. $this->status = $status;
  172. return $this;
  173. }
  174. public function getIsDel(): int
  175. {
  176. return $this->isDel;
  177. }
  178. public function setIsDel(int $isDel): ProductEntity
  179. {
  180. $this->isDel = $isDel;
  181. return $this;
  182. }
  183. public function getCateId(): int
  184. {
  185. return $this->cateId;
  186. }
  187. public function setCateId(int $cateId): ProductEntity
  188. {
  189. $this->cateId = $cateId;
  190. return $this;
  191. }
  192. public function getUnitName(): string
  193. {
  194. return $this->unitName;
  195. }
  196. public function setUnitName(string $unitName): ProductEntity
  197. {
  198. $this->unitName = $unitName;
  199. return $this;
  200. }
  201. public function getSort(): int
  202. {
  203. return $this->sort;
  204. }
  205. public function setSort(int $sort): ProductEntity
  206. {
  207. $this->sort = $sort;
  208. return $this;
  209. }
  210. public function getRank(): int
  211. {
  212. return $this->rank;
  213. }
  214. public function setRank(int $rank): ProductEntity
  215. {
  216. $this->rank = $rank;
  217. return $this;
  218. }
  219. public function getSales(): int
  220. {
  221. return $this->sales;
  222. }
  223. public function setSales(int $sales): ProductEntity
  224. {
  225. $this->sales = $sales;
  226. return $this;
  227. }
  228. /**
  229. * @return mixed
  230. */
  231. public function getPrice()
  232. {
  233. return $this->price;
  234. }
  235. /**
  236. * @param mixed $price
  237. * @return ProductEntity
  238. */
  239. public function setPrice($price)
  240. {
  241. $this->price = $price;
  242. return $this;
  243. }
  244. /**
  245. * @return mixed
  246. */
  247. public function getCost()
  248. {
  249. return $this->cost;
  250. }
  251. /**
  252. * @param mixed $cost
  253. * @return ProductEntity
  254. */
  255. public function setCost($cost)
  256. {
  257. $this->cost = $cost;
  258. return $this;
  259. }
  260. /**
  261. * @return mixed
  262. */
  263. public function getOtPrice()
  264. {
  265. return $this->otPrice;
  266. }
  267. /**
  268. * @param mixed $otPrice
  269. * @return ProductEntity
  270. */
  271. public function setOtPrice($otPrice)
  272. {
  273. $this->otPrice = $otPrice;
  274. return $this;
  275. }
  276. public function getStock(): int
  277. {
  278. return $this->stock;
  279. }
  280. public function setStock(int $stock): ProductEntity
  281. {
  282. $this->stock = $stock;
  283. return $this;
  284. }
  285. public function getIsHot(): int
  286. {
  287. return $this->isHot;
  288. }
  289. public function setIsHot(int $isHot): ProductEntity
  290. {
  291. $this->isHot = $isHot;
  292. return $this;
  293. }
  294. public function getIsBenefit(): int
  295. {
  296. return $this->isBenefit;
  297. }
  298. public function setIsBenefit(int $isBenefit): ProductEntity
  299. {
  300. $this->isBenefit = $isBenefit;
  301. return $this;
  302. }
  303. public function getIsBest(): int
  304. {
  305. return $this->isBest;
  306. }
  307. public function setIsBest(int $isBest): ProductEntity
  308. {
  309. $this->isBest = $isBest;
  310. return $this;
  311. }
  312. public function getIsNew(): int
  313. {
  314. return $this->isNew;
  315. }
  316. public function setIsNew(int $isNew): ProductEntity
  317. {
  318. $this->isNew = $isNew;
  319. return $this;
  320. }
  321. public function getIsGood(): int
  322. {
  323. return $this->isGood;
  324. }
  325. public function setIsGood(int $isGood): ProductEntity
  326. {
  327. $this->isGood = $isGood;
  328. return $this;
  329. }
  330. public function getProductType(): int
  331. {
  332. return $this->productType;
  333. }
  334. public function setProductType(int $productType): ProductEntity
  335. {
  336. $this->productType = $productType;
  337. return $this;
  338. }
  339. public function getFicti(): int
  340. {
  341. return $this->ficti;
  342. }
  343. public function setFicti(int $ficti): ProductEntity
  344. {
  345. $this->ficti = $ficti;
  346. return $this;
  347. }
  348. public function getBrowse(): int
  349. {
  350. return $this->browse;
  351. }
  352. public function setBrowse(int $browse): ProductEntity
  353. {
  354. $this->browse = $browse;
  355. return $this;
  356. }
  357. public function getCodePath(): string
  358. {
  359. return $this->codePath;
  360. }
  361. public function setCodePath(string $codePath): ProductEntity
  362. {
  363. $this->codePath = $codePath;
  364. return $this;
  365. }
  366. public function getVideoLink(): string
  367. {
  368. return $this->videoLink;
  369. }
  370. public function setVideoLink(string $videoLink): ProductEntity
  371. {
  372. $this->videoLink = $videoLink;
  373. return $this;
  374. }
  375. public function getTempId(): int
  376. {
  377. return $this->tempId;
  378. }
  379. public function setTempId(int $tempId): ProductEntity
  380. {
  381. $this->tempId = $tempId;
  382. return $this;
  383. }
  384. public function getSpecType(): int
  385. {
  386. return $this->specType;
  387. }
  388. public function setSpecType(int $specType): ProductEntity
  389. {
  390. $this->specType = $specType;
  391. return $this;
  392. }
  393. public function getExtensionType(): int
  394. {
  395. return $this->extensionType;
  396. }
  397. public function setExtensionType(int $extensionType): ProductEntity
  398. {
  399. $this->extensionType = $extensionType;
  400. return $this;
  401. }
  402. /**
  403. * @return mixed
  404. */
  405. public function getRefusal()
  406. {
  407. return $this->refusal;
  408. }
  409. /**
  410. * @param mixed $refusal
  411. * @return ProductEntity
  412. */
  413. public function setRefusal($refusal)
  414. {
  415. $this->refusal = $refusal;
  416. return $this;
  417. }
  418. public function getRate(): int
  419. {
  420. return $this->rate;
  421. }
  422. public function setRate(int $rate): ProductEntity
  423. {
  424. $this->rate = $rate;
  425. return $this;
  426. }
  427. public function getReplyCount(): int
  428. {
  429. return $this->replyCount;
  430. }
  431. public function setReplyCount(int $replyCount): ProductEntity
  432. {
  433. $this->replyCount = $replyCount;
  434. return $this;
  435. }
  436. public function getMerStatus(): int
  437. {
  438. return $this->merStatus;
  439. }
  440. public function setMerStatus(int $merStatus): ProductEntity
  441. {
  442. $this->merStatus = $merStatus;
  443. return $this;
  444. }
  445. /**
  446. * @return mixed
  447. */
  448. public function getGiveCouponIds()
  449. {
  450. return $this->giveCouponIds;
  451. }
  452. /**
  453. * @param mixed $giveCouponIds
  454. * @return ProductEntity
  455. */
  456. public function setGiveCouponIds($giveCouponIds)
  457. {
  458. $this->giveCouponIds = $giveCouponIds;
  459. return $this;
  460. }
  461. public function getIsGiftBag(): int
  462. {
  463. return $this->isGiftBag;
  464. }
  465. public function setIsGiftBag(int $isGiftBag): ProductEntity
  466. {
  467. $this->isGiftBag = $isGiftBag;
  468. return $this;
  469. }
  470. /**
  471. * @return mixed
  472. */
  473. public function getCreateTime()
  474. {
  475. return $this->createTime;
  476. }
  477. /**
  478. * @param mixed $createTime
  479. * @return ProductEntity
  480. */
  481. public function setCreateTime($createTime)
  482. {
  483. $this->createTime = $createTime;
  484. return $this;
  485. }
  486. /**
  487. * @return mixed
  488. */
  489. public function getCareCount()
  490. {
  491. return $this->careCount;
  492. }
  493. /**
  494. * @param mixed $careCount
  495. * @return ProductEntity
  496. */
  497. public function setCareCount($careCount)
  498. {
  499. $this->careCount = $careCount;
  500. return $this;
  501. }
  502. public function getIsUsed(): int
  503. {
  504. return $this->isUsed;
  505. }
  506. public function setIsUsed(int $isUsed): ProductEntity
  507. {
  508. $this->isUsed = $isUsed;
  509. return $this;
  510. }
  511. public function getOldProductId(): int
  512. {
  513. return $this->oldProductId;
  514. }
  515. public function setOldProductId(int $oldProductId): ProductEntity
  516. {
  517. $this->oldProductId = $oldProductId;
  518. return $this;
  519. }
  520. public function getVolunteer(): int
  521. {
  522. return $this->volunteer;
  523. }
  524. public function setVolunteer(int $volunteer): ProductEntity
  525. {
  526. $this->volunteer = $volunteer;
  527. return $this;
  528. }
  529. public function getType(): int
  530. {
  531. return $this->type;
  532. }
  533. public function setType(int $type): ProductEntity
  534. {
  535. $this->type = $type;
  536. return $this;
  537. }
  538. /**
  539. * @return mixed
  540. */
  541. public function getPension()
  542. {
  543. return $this->pension;
  544. }
  545. /**
  546. * @param mixed $pension
  547. * @return ProductEntity
  548. */
  549. public function setPension($pension)
  550. {
  551. $this->pension = $pension;
  552. return $this;
  553. }
  554. public function getCommission(): string
  555. {
  556. return $this->commission;
  557. }
  558. public function setCommission(string $commission): ProductEntity
  559. {
  560. $this->commission = $commission;
  561. return $this;
  562. }
  563. public function getDcId(): int
  564. {
  565. return $this->dcId;
  566. }
  567. public function setDcId(int $dcId): ProductEntity
  568. {
  569. $this->dcId = $dcId;
  570. return $this;
  571. }
  572. /**
  573. * @return mixed
  574. */
  575. public function getDcPrice()
  576. {
  577. return $this->dcPrice;
  578. }
  579. /**
  580. * @param mixed $dcPrice
  581. * @return ProductEntity
  582. */
  583. public function setDcPrice($dcPrice)
  584. {
  585. $this->dcPrice = $dcPrice;
  586. return $this;
  587. }
  588. public function getSeckill(): int
  589. {
  590. return $this->seckill;
  591. }
  592. public function setSeckill(int $seckill): ProductEntity
  593. {
  594. $this->seckill = $seckill;
  595. return $this;
  596. }
  597. public function getIsHide(): int
  598. {
  599. return $this->isHide;
  600. }
  601. public function setIsHide(int $isHide): ProductEntity
  602. {
  603. $this->isHide = $isHide;
  604. return $this;
  605. }
  606. /**
  607. * @return mixed
  608. */
  609. public function getSpuId()
  610. {
  611. return $this->spuId;
  612. }
  613. /**
  614. * @param mixed $spuId
  615. * @return ProductEntity
  616. */
  617. public function setSpuId($spuId)
  618. {
  619. $this->spuId = $spuId;
  620. return $this;
  621. }
  622. /**
  623. * @return mixed
  624. */
  625. public function getCostPrice()
  626. {
  627. return $this->costPrice;
  628. }
  629. /**
  630. * @param mixed $costPrice
  631. * @return ProductEntity
  632. */
  633. public function setCostPrice($costPrice)
  634. {
  635. $this->costPrice = $costPrice;
  636. return $this;
  637. }
  638. /**
  639. * @return mixed
  640. */
  641. public function getGongSkuId()
  642. {
  643. return $this->gongSkuId;
  644. }
  645. /**
  646. * @param mixed $gongSkuId
  647. * @return ProductEntity
  648. */
  649. public function setGongSkuId($gongSkuId)
  650. {
  651. $this->gongSkuId = $gongSkuId;
  652. return $this;
  653. }
  654. /**
  655. * @return mixed
  656. */
  657. public function getPlateMerProfit()
  658. {
  659. return $this->plateMerProfit;
  660. }
  661. /**
  662. * @param mixed $plateMerProfit
  663. * @return ProductEntity
  664. */
  665. public function setPlateMerProfit($plateMerProfit)
  666. {
  667. $this->plateMerProfit = $plateMerProfit;
  668. return $this;
  669. }
  670. /**
  671. * @return mixed
  672. */
  673. public function getYanglaojinScale()
  674. {
  675. return $this->yanglaojinScale;
  676. }
  677. /**
  678. * @param mixed $yanglaojinScale
  679. * @return ProductEntity
  680. */
  681. public function setYanglaojinScale($yanglaojinScale)
  682. {
  683. $this->yanglaojinScale = $yanglaojinScale;
  684. return $this;
  685. }
  686. public function getPensionIs(): int
  687. {
  688. return $this->pensionIs;
  689. }
  690. public function setPensionIs(int $pensionIs): ProductEntity
  691. {
  692. $this->pensionIs = $pensionIs;
  693. return $this;
  694. }
  695. public function getShareIs(): int
  696. {
  697. return $this->shareIs;
  698. }
  699. public function setShareIs(int $shareIs): ProductEntity
  700. {
  701. $this->shareIs = $shareIs;
  702. return $this;
  703. }
  704. public function getConcessionPri(): float
  705. {
  706. return $this->concessionPri;
  707. }
  708. public function setConcessionPri(float $concessionPri): ProductEntity
  709. {
  710. $this->concessionPri = $concessionPri;
  711. return $this;
  712. }
  713. /**
  714. * @return mixed
  715. */
  716. public function getArgument()
  717. {
  718. return $this->argument;
  719. }
  720. /**
  721. * @param mixed $argument
  722. * @return ProductEntity
  723. */
  724. public function setArgument($argument)
  725. {
  726. $this->argument = $argument;
  727. return $this;
  728. }
  729. public function getIsStatus(): int
  730. {
  731. return $this->isStatus;
  732. }
  733. public function setIsStatus(int $isStatus): ProductEntity
  734. {
  735. $this->isStatus = $isStatus;
  736. return $this;
  737. }
  738. }