| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865 |
- <?php
- namespace app\entity\data\store;
- use app\entity\data\DataEntity;
- class ProductEntity extends DataEntity
- {
- public $productId = 0; // 商品id
- public $merId = 0; // 商户Id
- public $image = ''; // 商品图片
- public $sliderImage = ''; // 轮播图
- public $storeName = ''; // 商品名称
- public $storeInfo = ''; // 商品简介
- public $keyword = ''; // 关键字
- public $barCode = ''; // 产品条码(一维码)
- public $brandId = null; // 品牌 id
- public $isShow = 1; // 商户状态(0:未上架,1:上架)
- public $status = 0; // 管理员状态(0:审核中,1:审核通过 -1: 未通过 -2: 下架)
- public $isDel = 0; // 是否删除
- public $cateId = 0; // 分类id
- public $unitName = ''; // 单位名
- public $sort = 0; // 排序
- public $rank = 0; // 总后台排序
- public $sales = 0; // 销量
- public $price = null; // 最低价格
- public $cost = null; // 成本价
- public $otPrice = null; // 原价
- public $stock = 0; // 总库存
- public $isHot = 0; // 是否热卖
- public $isBenefit = 0; // 促销单品
- public $isBest = 0; // 是否精品
- public $isNew = 0; // 是否新品
- public $isGood = 0; // 是否优品推荐
- public $productType = 0; // 0.普通商品 1.秒杀商品
- public $ficti = 100; // 虚拟销量
- public $browse = 0; // 浏览量
- public $codePath = ''; // 产品二维码地址(用户小程序海报)
- public $videoLink = ''; // 主图视频链接
- public $tempId = 1; // 运费模板ID
- public $specType = 0; // 规格 0单 1多
- public $extensionType = 0; // 佣金比例 0.系统,1.自定义
- public $refusal = null; // 审核拒绝理由
- public $rate = 5; // 评价分数
- public $replyCount = 0; // 评论数
- public $merStatus = 1; // 商铺状态是否 1.正常 0. 非正常
- public $giveCouponIds = null; // 赠送优惠券
- public $isGiftBag = 0; // 是否为礼包
- public $createTime = null; // 添加时间
- public $careCount = null; // 收藏数
- public $isUsed = 1; // 显示/隐藏
- public $oldProductId = 0; // 原商品ID
- public $volunteer = 0; // 志愿者商品
- public $type = 1; // 商品类型:1:普通商品。2:爆款商品。3:消费积分商品
- public $pension = null; // 养老金(非百分比)特定商品类型可用
- public $commission = '0'; // 返佣(百分比)特定类型商品可用
- public $dcId = 0; // 所属大仓ID
- public $dcPrice = null; // 大仓价格
- public $seckill = 0; // 是否秒杀 1是 0不是
- public $isHide = 0; // 秒杀 1不显示 0显示
- public $spuId = null; // 供应链商品ID
- public $costPrice = null; // 成本价格
- public $gongSkuId = null; // 供应商SKU ID
- public $plateMerProfit = null; // 平台创客利润
- public $yanglaojinScale = null; // 养老金比例:养老金/销售价
- public $pensionIs = 0; // 养老金单独设置是否开启 0-不开 1-开
- public $shareIs = 0; // 分享奖单独设置是否开启 0-不开 1-开
- public $concessionPri = 0.00; // 商品分润(商家让利)
- public $argument = null; // 下架说明理由
- public $isStatus = 0; // 0系统下架 1手动下架
- public function getProductId(): int
- {
- return $this->productId;
- }
- public function setProductId(int $productId): ProductEntity
- {
- $this->productId = $productId;
- return $this;
- }
- public function getMerId(): int
- {
- return $this->merId;
- }
- public function setMerId(int $merId): ProductEntity
- {
- $this->merId = $merId;
- return $this;
- }
- public function getImage(): string
- {
- return $this->image;
- }
- public function setImage(string $image): ProductEntity
- {
- $this->image = $image;
- return $this;
- }
- public function getSliderImage(): string
- {
- return $this->sliderImage;
- }
- public function setSliderImage(string $sliderImage): ProductEntity
- {
- $this->sliderImage = $sliderImage;
- return $this;
- }
- public function getStoreName(): string
- {
- return $this->storeName;
- }
- public function setStoreName(string $storeName): ProductEntity
- {
- $this->storeName = $storeName;
- return $this;
- }
- public function getStoreInfo(): string
- {
- return $this->storeInfo;
- }
- public function setStoreInfo(string $storeInfo): ProductEntity
- {
- $this->storeInfo = $storeInfo;
- return $this;
- }
- public function getKeyword(): string
- {
- return $this->keyword;
- }
- public function setKeyword(string $keyword): ProductEntity
- {
- $this->keyword = $keyword;
- return $this;
- }
- public function getBarCode(): string
- {
- return $this->barCode;
- }
- public function setBarCode(string $barCode): ProductEntity
- {
- $this->barCode = $barCode;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getBrandId()
- {
- return $this->brandId;
- }
- /**
- * @param mixed $brandId
- * @return ProductEntity
- */
- public function setBrandId($brandId)
- {
- $this->brandId = $brandId;
- return $this;
- }
- public function getIsShow(): int
- {
- return $this->isShow;
- }
- public function setIsShow(int $isShow): ProductEntity
- {
- $this->isShow = $isShow;
- return $this;
- }
- public function getStatus(): int
- {
- return $this->status;
- }
- public function setStatus(int $status): ProductEntity
- {
- $this->status = $status;
- return $this;
- }
- public function getIsDel(): int
- {
- return $this->isDel;
- }
- public function setIsDel(int $isDel): ProductEntity
- {
- $this->isDel = $isDel;
- return $this;
- }
- public function getCateId(): int
- {
- return $this->cateId;
- }
- public function setCateId(int $cateId): ProductEntity
- {
- $this->cateId = $cateId;
- return $this;
- }
- public function getUnitName(): string
- {
- return $this->unitName;
- }
- public function setUnitName(string $unitName): ProductEntity
- {
- $this->unitName = $unitName;
- return $this;
- }
- public function getSort(): int
- {
- return $this->sort;
- }
- public function setSort(int $sort): ProductEntity
- {
- $this->sort = $sort;
- return $this;
- }
- public function getRank(): int
- {
- return $this->rank;
- }
- public function setRank(int $rank): ProductEntity
- {
- $this->rank = $rank;
- return $this;
- }
- public function getSales(): int
- {
- return $this->sales;
- }
- public function setSales(int $sales): ProductEntity
- {
- $this->sales = $sales;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getPrice()
- {
- return $this->price;
- }
- /**
- * @param mixed $price
- * @return ProductEntity
- */
- public function setPrice($price)
- {
- $this->price = $price;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getCost()
- {
- return $this->cost;
- }
- /**
- * @param mixed $cost
- * @return ProductEntity
- */
- public function setCost($cost)
- {
- $this->cost = $cost;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getOtPrice()
- {
- return $this->otPrice;
- }
- /**
- * @param mixed $otPrice
- * @return ProductEntity
- */
- public function setOtPrice($otPrice)
- {
- $this->otPrice = $otPrice;
- return $this;
- }
- public function getStock(): int
- {
- return $this->stock;
- }
- public function setStock(int $stock): ProductEntity
- {
- $this->stock = $stock;
- return $this;
- }
- public function getIsHot(): int
- {
- return $this->isHot;
- }
- public function setIsHot(int $isHot): ProductEntity
- {
- $this->isHot = $isHot;
- return $this;
- }
- public function getIsBenefit(): int
- {
- return $this->isBenefit;
- }
- public function setIsBenefit(int $isBenefit): ProductEntity
- {
- $this->isBenefit = $isBenefit;
- return $this;
- }
- public function getIsBest(): int
- {
- return $this->isBest;
- }
- public function setIsBest(int $isBest): ProductEntity
- {
- $this->isBest = $isBest;
- return $this;
- }
- public function getIsNew(): int
- {
- return $this->isNew;
- }
- public function setIsNew(int $isNew): ProductEntity
- {
- $this->isNew = $isNew;
- return $this;
- }
- public function getIsGood(): int
- {
- return $this->isGood;
- }
- public function setIsGood(int $isGood): ProductEntity
- {
- $this->isGood = $isGood;
- return $this;
- }
- public function getProductType(): int
- {
- return $this->productType;
- }
- public function setProductType(int $productType): ProductEntity
- {
- $this->productType = $productType;
- return $this;
- }
- public function getFicti(): int
- {
- return $this->ficti;
- }
- public function setFicti(int $ficti): ProductEntity
- {
- $this->ficti = $ficti;
- return $this;
- }
- public function getBrowse(): int
- {
- return $this->browse;
- }
- public function setBrowse(int $browse): ProductEntity
- {
- $this->browse = $browse;
- return $this;
- }
- public function getCodePath(): string
- {
- return $this->codePath;
- }
- public function setCodePath(string $codePath): ProductEntity
- {
- $this->codePath = $codePath;
- return $this;
- }
- public function getVideoLink(): string
- {
- return $this->videoLink;
- }
- public function setVideoLink(string $videoLink): ProductEntity
- {
- $this->videoLink = $videoLink;
- return $this;
- }
- public function getTempId(): int
- {
- return $this->tempId;
- }
- public function setTempId(int $tempId): ProductEntity
- {
- $this->tempId = $tempId;
- return $this;
- }
- public function getSpecType(): int
- {
- return $this->specType;
- }
- public function setSpecType(int $specType): ProductEntity
- {
- $this->specType = $specType;
- return $this;
- }
- public function getExtensionType(): int
- {
- return $this->extensionType;
- }
- public function setExtensionType(int $extensionType): ProductEntity
- {
- $this->extensionType = $extensionType;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getRefusal()
- {
- return $this->refusal;
- }
- /**
- * @param mixed $refusal
- * @return ProductEntity
- */
- public function setRefusal($refusal)
- {
- $this->refusal = $refusal;
- return $this;
- }
- public function getRate(): int
- {
- return $this->rate;
- }
- public function setRate(int $rate): ProductEntity
- {
- $this->rate = $rate;
- return $this;
- }
- public function getReplyCount(): int
- {
- return $this->replyCount;
- }
- public function setReplyCount(int $replyCount): ProductEntity
- {
- $this->replyCount = $replyCount;
- return $this;
- }
- public function getMerStatus(): int
- {
- return $this->merStatus;
- }
- public function setMerStatus(int $merStatus): ProductEntity
- {
- $this->merStatus = $merStatus;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getGiveCouponIds()
- {
- return $this->giveCouponIds;
- }
- /**
- * @param mixed $giveCouponIds
- * @return ProductEntity
- */
- public function setGiveCouponIds($giveCouponIds)
- {
- $this->giveCouponIds = $giveCouponIds;
- return $this;
- }
- public function getIsGiftBag(): int
- {
- return $this->isGiftBag;
- }
- public function setIsGiftBag(int $isGiftBag): ProductEntity
- {
- $this->isGiftBag = $isGiftBag;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * @param mixed $createTime
- * @return ProductEntity
- */
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getCareCount()
- {
- return $this->careCount;
- }
- /**
- * @param mixed $careCount
- * @return ProductEntity
- */
- public function setCareCount($careCount)
- {
- $this->careCount = $careCount;
- return $this;
- }
- public function getIsUsed(): int
- {
- return $this->isUsed;
- }
- public function setIsUsed(int $isUsed): ProductEntity
- {
- $this->isUsed = $isUsed;
- return $this;
- }
- public function getOldProductId(): int
- {
- return $this->oldProductId;
- }
- public function setOldProductId(int $oldProductId): ProductEntity
- {
- $this->oldProductId = $oldProductId;
- return $this;
- }
- public function getVolunteer(): int
- {
- return $this->volunteer;
- }
- public function setVolunteer(int $volunteer): ProductEntity
- {
- $this->volunteer = $volunteer;
- return $this;
- }
- public function getType(): int
- {
- return $this->type;
- }
- public function setType(int $type): ProductEntity
- {
- $this->type = $type;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getPension()
- {
- return $this->pension;
- }
- /**
- * @param mixed $pension
- * @return ProductEntity
- */
- public function setPension($pension)
- {
- $this->pension = $pension;
- return $this;
- }
- public function getCommission(): string
- {
- return $this->commission;
- }
- public function setCommission(string $commission): ProductEntity
- {
- $this->commission = $commission;
- return $this;
- }
- public function getDcId(): int
- {
- return $this->dcId;
- }
- public function setDcId(int $dcId): ProductEntity
- {
- $this->dcId = $dcId;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getDcPrice()
- {
- return $this->dcPrice;
- }
- /**
- * @param mixed $dcPrice
- * @return ProductEntity
- */
- public function setDcPrice($dcPrice)
- {
- $this->dcPrice = $dcPrice;
- return $this;
- }
- public function getSeckill(): int
- {
- return $this->seckill;
- }
- public function setSeckill(int $seckill): ProductEntity
- {
- $this->seckill = $seckill;
- return $this;
- }
- public function getIsHide(): int
- {
- return $this->isHide;
- }
- public function setIsHide(int $isHide): ProductEntity
- {
- $this->isHide = $isHide;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getSpuId()
- {
- return $this->spuId;
- }
- /**
- * @param mixed $spuId
- * @return ProductEntity
- */
- public function setSpuId($spuId)
- {
- $this->spuId = $spuId;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getCostPrice()
- {
- return $this->costPrice;
- }
- /**
- * @param mixed $costPrice
- * @return ProductEntity
- */
- public function setCostPrice($costPrice)
- {
- $this->costPrice = $costPrice;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getGongSkuId()
- {
- return $this->gongSkuId;
- }
- /**
- * @param mixed $gongSkuId
- * @return ProductEntity
- */
- public function setGongSkuId($gongSkuId)
- {
- $this->gongSkuId = $gongSkuId;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getPlateMerProfit()
- {
- return $this->plateMerProfit;
- }
- /**
- * @param mixed $plateMerProfit
- * @return ProductEntity
- */
- public function setPlateMerProfit($plateMerProfit)
- {
- $this->plateMerProfit = $plateMerProfit;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getYanglaojinScale()
- {
- return $this->yanglaojinScale;
- }
- /**
- * @param mixed $yanglaojinScale
- * @return ProductEntity
- */
- public function setYanglaojinScale($yanglaojinScale)
- {
- $this->yanglaojinScale = $yanglaojinScale;
- return $this;
- }
- public function getPensionIs(): int
- {
- return $this->pensionIs;
- }
- public function setPensionIs(int $pensionIs): ProductEntity
- {
- $this->pensionIs = $pensionIs;
- return $this;
- }
- public function getShareIs(): int
- {
- return $this->shareIs;
- }
- public function setShareIs(int $shareIs): ProductEntity
- {
- $this->shareIs = $shareIs;
- return $this;
- }
- public function getConcessionPri(): float
- {
- return $this->concessionPri;
- }
- public function setConcessionPri(float $concessionPri): ProductEntity
- {
- $this->concessionPri = $concessionPri;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getArgument()
- {
- return $this->argument;
- }
- /**
- * @param mixed $argument
- * @return ProductEntity
- */
- public function setArgument($argument)
- {
- $this->argument = $argument;
- return $this;
- }
- public function getIsStatus(): int
- {
- return $this->isStatus;
- }
- public function setIsStatus(int $isStatus): ProductEntity
- {
- $this->isStatus = $isStatus;
- return $this;
- }
- }
|