| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?php
- namespace app\entity\data\store;
- use app\entity\data\DataEntity;
- class ProductAttrValueEntity extends DataEntity
- {
- public $productId = 0; // 商品ID
- public $detail = ''; // 商品属性详细
- public $sku = ''; // 商品属性索引值
- public $stock = 0; // 属性对应的库存
- public $sales = 0; // 销量
- public $image = null; // 图片
- public $barCode = ''; // 产品条码
- public $cost = 0.00; // 成本价
- public $otPrice = 0.00; // 原价
- public $price = 0.00; // 价格
- public $volume = 0.00; // 体积
- public $weight = 0.00; // 重量
- public $type = 0; // 活动类型 0=商品
- public $extensionOne = null; // 养老金
- public $extensionTwo = null; // 二级佣金
- public $unique = ''; // 唯一值
- public $dacangPrice = 0.00; // 大仓会员价
- public $costPrice = null; // 供应链成本价
- public $gongSkuId = null; // 供应链sku_id
- public $gongMerProfit = null; // 供应链创客利润
- public $gongPension = null; // 供应链养老金
- public $gongMarketPrice = null; // 供应链销售价
- public $plateMerProfit = null; // 商户创客利润
- public $pensionNum = '0'; // 养老金%
- public $shareNum = '0'; // 分享奖%
- public $stockNum = '0'; // 股权%
- public $sharesNum = '0'; // 股票
- public function getProductId(): int
- {
- return $this->productId;
- }
- public function setProductId(int $productId): ProductAttrValueEntity
- {
- $this->productId = $productId;
- return $this;
- }
- public function getDetail(): string
- {
- return $this->detail;
- }
- public function setDetail(string $detail): ProductAttrValueEntity
- {
- $this->detail = $detail;
- return $this;
- }
- public function getSku(): string
- {
- return $this->sku;
- }
- public function setSku(string $sku): ProductAttrValueEntity
- {
- $this->sku = $sku;
- return $this;
- }
- public function getStock(): int
- {
- return $this->stock;
- }
- public function setStock(int $stock): ProductAttrValueEntity
- {
- $this->stock = $stock;
- return $this;
- }
- public function getSales(): int
- {
- return $this->sales;
- }
- public function setSales(int $sales): ProductAttrValueEntity
- {
- $this->sales = $sales;
- return $this;
- }
- /**
- * @return null
- */
- public function getImage()
- {
- return $this->image;
- }
- /**
- * @param null $image
- * @return ProductAttrValueEntity
- */
- public function setImage($image)
- {
- $this->image = $image;
- return $this;
- }
- public function getBarCode(): string
- {
- return $this->barCode;
- }
- public function setBarCode(string $barCode): ProductAttrValueEntity
- {
- $this->barCode = $barCode;
- return $this;
- }
- public function getCost(): float
- {
- return $this->cost;
- }
- public function setCost(float $cost): ProductAttrValueEntity
- {
- $this->cost = $cost;
- return $this;
- }
- public function getOtPrice(): float
- {
- return $this->otPrice;
- }
- public function setOtPrice(float $otPrice): ProductAttrValueEntity
- {
- $this->otPrice = $otPrice;
- return $this;
- }
- public function getPrice(): float
- {
- return $this->price;
- }
- public function setPrice(float $price): ProductAttrValueEntity
- {
- $this->price = $price;
- return $this;
- }
- public function getVolume(): float
- {
- return $this->volume;
- }
- public function setVolume(float $volume): ProductAttrValueEntity
- {
- $this->volume = $volume;
- return $this;
- }
- public function getWeight(): float
- {
- return $this->weight;
- }
- public function setWeight(float $weight): ProductAttrValueEntity
- {
- $this->weight = $weight;
- return $this;
- }
- public function getType(): int
- {
- return $this->type;
- }
- public function setType(int $type): ProductAttrValueEntity
- {
- $this->type = $type;
- return $this;
- }
- /**
- * @return null
- */
- public function getExtensionOne()
- {
- return $this->extensionOne;
- }
- /**
- * @param null $extensionOne
- * @return ProductAttrValueEntity
- */
- public function setExtensionOne($extensionOne)
- {
- $this->extensionOne = $extensionOne;
- return $this;
- }
- /**
- * @return null
- */
- public function getExtensionTwo()
- {
- return $this->extensionTwo;
- }
- /**
- * @param null $extensionTwo
- * @return ProductAttrValueEntity
- */
- public function setExtensionTwo($extensionTwo)
- {
- $this->extensionTwo = $extensionTwo;
- return $this;
- }
- public function getUnique(): string
- {
- return $this->unique;
- }
- public function setUnique(string $unique): ProductAttrValueEntity
- {
- $this->unique = $unique;
- return $this;
- }
- public function getDacangPrice(): float
- {
- return $this->dacangPrice;
- }
- public function setDacangPrice(float $dacangPrice): ProductAttrValueEntity
- {
- $this->dacangPrice = $dacangPrice;
- return $this;
- }
- /**
- * @return null
- */
- public function getCostPrice()
- {
- return $this->costPrice;
- }
- /**
- * @param null $costPrice
- * @return ProductAttrValueEntity
- */
- public function setCostPrice($costPrice)
- {
- $this->costPrice = $costPrice;
- return $this;
- }
- /**
- * @return null
- */
- public function getGongSkuId()
- {
- return $this->gongSkuId;
- }
- /**
- * @param null $gongSkuId
- * @return ProductAttrValueEntity
- */
- public function setGongSkuId($gongSkuId)
- {
- $this->gongSkuId = $gongSkuId;
- return $this;
- }
- /**
- * @return null
- */
- public function getGongMerProfit()
- {
- return $this->gongMerProfit;
- }
- /**
- * @param null $gongMerProfit
- * @return ProductAttrValueEntity
- */
- public function setGongMerProfit($gongMerProfit)
- {
- $this->gongMerProfit = $gongMerProfit;
- return $this;
- }
- /**
- * @return null
- */
- public function getGongPension()
- {
- return $this->gongPension;
- }
- /**
- * @param null $gongPension
- * @return ProductAttrValueEntity
- */
- public function setGongPension($gongPension)
- {
- $this->gongPension = $gongPension;
- return $this;
- }
- /**
- * @return null
- */
- public function getGongMarketPrice()
- {
- return $this->gongMarketPrice;
- }
- /**
- * @param null $gongMarketPrice
- * @return ProductAttrValueEntity
- */
- public function setGongMarketPrice($gongMarketPrice)
- {
- $this->gongMarketPrice = $gongMarketPrice;
- return $this;
- }
- /**
- * @return null
- */
- public function getPlateMerProfit()
- {
- return $this->plateMerProfit;
- }
- /**
- * @param null $plateMerProfit
- * @return ProductAttrValueEntity
- */
- public function setPlateMerProfit($plateMerProfit)
- {
- $this->plateMerProfit = $plateMerProfit;
- return $this;
- }
- public function getPensionNum(): string
- {
- return $this->pensionNum;
- }
- public function setPensionNum(string $pensionNum): ProductAttrValueEntity
- {
- $this->pensionNum = $pensionNum;
- return $this;
- }
- public function getShareNum(): string
- {
- return $this->shareNum;
- }
- public function setShareNum(string $shareNum): ProductAttrValueEntity
- {
- $this->shareNum = $shareNum;
- return $this;
- }
- public function getStockNum(): string
- {
- return $this->stockNum;
- }
- public function setStockNum(string $stockNum): ProductAttrValueEntity
- {
- $this->stockNum = $stockNum;
- return $this;
- }
- public function getSharesNum(): string
- {
- return $this->sharesNum;
- }
- public function setSharesNum(string $sharesNum): ProductAttrValueEntity
- {
- $this->sharesNum = $sharesNum;
- return $this;
- }
- }
|