GoodsEntity.java 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. package com.kmall.admin.entity;
  2. import java.io.Serializable;
  3. import java.math.BigDecimal;
  4. import java.util.ArrayList;
  5. import java.util.Date;
  6. import java.util.List;
  7. /**
  8. * @author Scott
  9. * @email
  10. * @date 2017-08-13 10:41:08
  11. */
  12. public class GoodsEntity implements Serializable {
  13. private static final long serialVersionUID = 1L;
  14. //主键
  15. private Long id;
  16. //商品类型Id
  17. private Integer categoryId;
  18. //供应商id
  19. private Integer supplierId;
  20. //商品序列号
  21. private String goodsSn;
  22. //名称
  23. private String name;
  24. //品牌Id
  25. private Integer brandId;
  26. //运费id
  27. private Integer freightId;
  28. //品牌
  29. private String brand;
  30. //商品库存
  31. private Integer goodsNumber;
  32. //关键字
  33. private String keywords;
  34. //简明介绍
  35. private String goodsBrief;
  36. //商品描述
  37. private String goodsDesc;
  38. //添加时间
  39. private Date addTime;
  40. //修改时间
  41. private Date updateTime;
  42. //排序
  43. private Integer sortOrder;
  44. //删除状态
  45. private Integer isDelete;
  46. //属性类别
  47. private Integer attributeCategory;
  48. //库存价格
  49. private BigDecimal counterPrice;
  50. //附加价格
  51. private BigDecimal extraPrice;
  52. //是否新商品
  53. private Integer isNew;
  54. //商品单位
  55. private String goodsUnit;
  56. //商品主图
  57. private String primaryPicUrl;
  58. //商品列表图
  59. private String listPicUrl;
  60. //商品税率
  61. private BigDecimal goodsRate;
  62. //零售价格
  63. // private BigDecimal retailPrice;
  64. //销售量
  65. private Integer sellVolume;
  66. //主sku product_id
  67. private Long primaryProductId;
  68. //单位价格,单价
  69. private BigDecimal unitPrice;
  70. //推广描述
  71. private String promotionDesc;
  72. //推广标签
  73. private String promotionTag;
  74. //APP专享价
  75. private BigDecimal appExclusivePrice;
  76. //是否是APP专属
  77. private Integer isAppExclusive;
  78. //限购
  79. private Integer isLimited;
  80. //上架
  81. private Integer isOnSale;
  82. //热销
  83. private Integer isHot;
  84. //市场价
  85. // private BigDecimal marketPrice;
  86. //零售价格
  87. private BigDecimal storeRetailPrice;
  88. //市场价
  89. private BigDecimal storeMarketPrice;
  90. /**
  91. * 产品条码
  92. */
  93. private String prodBarcode;
  94. /**
  95. * 计量单位代码,参见海关编码
  96. */
  97. private String unitCode;
  98. /**
  99. * 海关商品编码
  100. */
  101. private String cusGoodsCode;
  102. /**
  103. * 国检规格型号
  104. */
  105. private String ciqProdModel;
  106. /**
  107. * 原产国代码,海关编码
  108. */
  109. private String oriCntCode;
  110. /**
  111. * 海关申报要素,报统一版
  112. */
  113. private String cusDeclEle;
  114. /**
  115. * 海关备案编号,企业自编,用于报园区
  116. */
  117. private String cusRecCode;
  118. private String sku;
  119. private String goodsBizType;
  120. private String createrSn;
  121. private Date createTime;
  122. private String moderSn;
  123. private Date modTime;
  124. private Date tstm;
  125. /**
  126. * 用户ID
  127. */
  128. private Long createUserId;
  129. private Long createUserDeptId;
  130. /**
  131. * 用户ID
  132. */
  133. private Long updateUserId;
  134. // 商品类型
  135. private Integer goodsType = 0; // 0普通 1 2团购
  136. private List<GoodsAttributeEntity> attributeEntityList = new ArrayList<>();
  137. private List<GoodsGalleryEntity> goodsImgList = new ArrayList<>();
  138. private List<ProductEntity> productEntityList = new ArrayList<>();
  139. /**
  140. * 翻译用字段
  141. */
  142. //属性类别
  143. private String attributeCategoryName;
  144. //视频地址
  145. private String videoUrl;
  146. private String stockNum;
  147. private String storeName;
  148. private String productId;
  149. private Integer storeId;
  150. /**
  151. * 导入翻译数据
  152. */
  153. //商品类型
  154. private String categoryName;
  155. //品牌
  156. private String brandName;
  157. //商户编号
  158. private String merchSn;
  159. private String merchName;
  160. private String thirdPartyMerchCode;
  161. private String isStockShare;
  162. public String getIsStockShare() {
  163. return isStockShare;
  164. }
  165. public void setIsStockShare(String isStockShare) {
  166. this.isStockShare = isStockShare;
  167. }
  168. public String getThirdPartyMerchCode() {
  169. return thirdPartyMerchCode;
  170. }
  171. public void setThirdPartyMerchCode(String thirdPartyMerchCode) {
  172. this.thirdPartyMerchCode = thirdPartyMerchCode;
  173. }
  174. public BigDecimal getStoreRetailPrice() {
  175. return storeRetailPrice;
  176. }
  177. public void setStoreRetailPrice(BigDecimal storeRetailPrice) {
  178. this.storeRetailPrice = storeRetailPrice;
  179. }
  180. public BigDecimal getStoreMarketPrice() {
  181. return storeMarketPrice;
  182. }
  183. public void setStoreMarketPrice(BigDecimal storeMarketPrice) {
  184. this.storeMarketPrice = storeMarketPrice;
  185. }
  186. public String getMerchName() {
  187. return merchName;
  188. }
  189. public void setMerchName(String merchName) {
  190. this.merchName = merchName;
  191. }
  192. public String getMerchSn() {
  193. return merchSn;
  194. }
  195. public void setMerchSn(String merchSn) {
  196. this.merchSn = merchSn;
  197. }
  198. public Integer getStoreId() {
  199. return storeId;
  200. }
  201. public void setStoreId(Integer storeId) {
  202. this.storeId = storeId;
  203. }
  204. public String getProductId() {
  205. return productId;
  206. }
  207. public void setProductId(String productId) {
  208. this.productId = productId;
  209. }
  210. public String getStockNum() {
  211. return stockNum;
  212. }
  213. public void setStockNum(String stockNum) {
  214. this.stockNum = stockNum;
  215. }
  216. public String getStoreName() {
  217. return storeName;
  218. }
  219. public void setStoreName(String storeName) {
  220. this.storeName = storeName;
  221. }
  222. public Integer getSupplierId() {
  223. return supplierId;
  224. }
  225. public void setSupplierId(Integer supplierId) {
  226. this.supplierId = supplierId;
  227. }
  228. public String getVideoUrl() {
  229. return videoUrl;
  230. }
  231. public void setVideoUrl(String videoUrl) {
  232. this.videoUrl = videoUrl;
  233. }
  234. public String getSku() {
  235. return sku;
  236. }
  237. public void setSku(String sku) {
  238. this.sku = sku;
  239. }
  240. public String getGoodsBizType() {
  241. return goodsBizType;
  242. }
  243. public void setGoodsBizType(String goodsBizType) {
  244. this.goodsBizType = goodsBizType;
  245. }
  246. public String getCreaterSn() {
  247. return createrSn;
  248. }
  249. public void setCreaterSn(String createrSn) {
  250. this.createrSn = createrSn;
  251. }
  252. public Date getCreateTime() {
  253. return createTime;
  254. }
  255. public void setCreateTime(Date createTime) {
  256. this.createTime = createTime;
  257. }
  258. public String getModerSn() {
  259. return moderSn;
  260. }
  261. public void setModerSn(String moderSn) {
  262. this.moderSn = moderSn;
  263. }
  264. public Date getModTime() {
  265. return modTime;
  266. }
  267. public void setModTime(Date modTime) {
  268. this.modTime = modTime;
  269. }
  270. public Date getTstm() {
  271. return tstm;
  272. }
  273. public void setTstm(Date tstm) {
  274. this.tstm = tstm;
  275. }
  276. public Long getCreateUserDeptId() {
  277. return createUserDeptId;
  278. }
  279. public void setCreateUserDeptId(Long createUserDeptId) {
  280. this.createUserDeptId = createUserDeptId;
  281. }
  282. public List<GoodsGalleryEntity> getGoodsImgList() {
  283. return goodsImgList;
  284. }
  285. public void setGoodsImgList(List<GoodsGalleryEntity> goodsImgList) {
  286. this.goodsImgList = goodsImgList;
  287. }
  288. public String getBrandName() {
  289. return brandName;
  290. }
  291. public void setBrandName(String brandName) {
  292. this.brandName = brandName;
  293. }
  294. public String getAttributeCategoryName() {
  295. return attributeCategoryName;
  296. }
  297. public void setAttributeCategoryName(String attributeCategoryName) {
  298. this.attributeCategoryName = attributeCategoryName;
  299. }
  300. public String getCategoryName() {
  301. return categoryName;
  302. }
  303. public void setCategoryName(String categoryName) {
  304. this.categoryName = categoryName;
  305. }
  306. /**
  307. * 设置:主键
  308. */
  309. public void setId(Long id) {
  310. this.id = id;
  311. }
  312. /**
  313. * 获取:主键
  314. */
  315. public Long getId() {
  316. return id;
  317. }
  318. /**
  319. * 设置:商品类型Id
  320. */
  321. public void setCategoryId(Integer categoryId) {
  322. this.categoryId = categoryId;
  323. }
  324. /**
  325. * 获取:商品类型Id
  326. */
  327. public Integer getCategoryId() {
  328. return categoryId;
  329. }
  330. /**
  331. * 设置:商品序列号
  332. */
  333. public void setGoodsSn(String goodsSn) {
  334. this.goodsSn = goodsSn;
  335. }
  336. /**
  337. * 获取:商品序列号
  338. */
  339. public String getGoodsSn() {
  340. return goodsSn;
  341. }
  342. /**
  343. * 设置:名称
  344. */
  345. public void setName(String name) {
  346. this.name = name;
  347. }
  348. /**
  349. * 获取:名称
  350. */
  351. public String getName() {
  352. return name;
  353. }
  354. public Integer getFreightId() {
  355. return freightId;
  356. }
  357. public void setFreightId(Integer freightId) {
  358. this.freightId = freightId;
  359. }
  360. /**
  361. * 设置:品牌Id
  362. */
  363. public void setBrandId(Integer brandId) {
  364. this.brandId = brandId;
  365. }
  366. /**
  367. * 获取:品牌Id
  368. */
  369. public Integer getBrandId() {
  370. return brandId;
  371. }
  372. public String getBrand() {
  373. return brand;
  374. }
  375. public void setBrand(String brand) {
  376. this.brand = brand;
  377. }
  378. /**
  379. * 设置:商品序列号
  380. */
  381. public void setGoodsNumber(Integer goodsNumber) {
  382. this.goodsNumber = goodsNumber;
  383. }
  384. /**
  385. * 获取:商品序列号
  386. */
  387. public Integer getGoodsNumber() {
  388. return goodsNumber;
  389. }
  390. /**
  391. * 设置:关键字
  392. */
  393. public void setKeywords(String keywords) {
  394. this.keywords = keywords;
  395. }
  396. /**
  397. * 获取:关键字
  398. */
  399. public String getKeywords() {
  400. return keywords;
  401. }
  402. /**
  403. * 设置:简明介绍
  404. */
  405. public void setGoodsBrief(String goodsBrief) {
  406. this.goodsBrief = goodsBrief;
  407. }
  408. /**
  409. * 获取:简明介绍
  410. */
  411. public String getGoodsBrief() {
  412. return goodsBrief;
  413. }
  414. /**
  415. * 设置:商品描述
  416. */
  417. public void setGoodsDesc(String goodsDesc) {
  418. this.goodsDesc = goodsDesc;
  419. }
  420. /**
  421. * 获取:商品描述
  422. */
  423. public String getGoodsDesc() {
  424. return goodsDesc;
  425. }
  426. /**
  427. * 设置:上架
  428. */
  429. public void setIsOnSale(Integer isOnSale) {
  430. this.isOnSale = isOnSale;
  431. }
  432. /**
  433. * 获取:上架
  434. */
  435. public Integer getIsOnSale() {
  436. return isOnSale;
  437. }
  438. /**
  439. * 设置:添加时间
  440. */
  441. public void setAddTime(Date addTime) {
  442. this.addTime = addTime;
  443. }
  444. /**
  445. * 获取:添加时间
  446. */
  447. public Date getAddTime() {
  448. return addTime;
  449. }
  450. /**
  451. * 设置:排序
  452. */
  453. public void setSortOrder(Integer sortOrder) {
  454. this.sortOrder = sortOrder;
  455. }
  456. /**
  457. * 获取:排序
  458. */
  459. public Integer getSortOrder() {
  460. return sortOrder;
  461. }
  462. /**
  463. * 设置:删除状态
  464. */
  465. public void setIsDelete(Integer isDelete) {
  466. this.isDelete = isDelete;
  467. }
  468. /**
  469. * 获取:删除状态
  470. */
  471. public Integer getIsDelete() {
  472. return isDelete;
  473. }
  474. /**
  475. * 设置:属性类别
  476. */
  477. public void setAttributeCategory(Integer attributeCategory) {
  478. this.attributeCategory = attributeCategory;
  479. }
  480. /**
  481. * 获取:属性类别
  482. */
  483. public Integer getAttributeCategory() {
  484. return attributeCategory;
  485. }
  486. /**
  487. * 设置:专柜价格
  488. */
  489. public void setCounterPrice(BigDecimal counterPrice) {
  490. this.counterPrice = counterPrice;
  491. }
  492. /**
  493. * 获取:专柜价格
  494. */
  495. public BigDecimal getCounterPrice() {
  496. return counterPrice;
  497. }
  498. /**
  499. * 设置:附加价格
  500. */
  501. public void setExtraPrice(BigDecimal extraPrice) {
  502. this.extraPrice = extraPrice;
  503. }
  504. /**
  505. * 获取:附加价格
  506. */
  507. public BigDecimal getExtraPrice() {
  508. return extraPrice;
  509. }
  510. /**
  511. * 设置:是否新商品
  512. */
  513. public void setIsNew(Integer isNew) {
  514. this.isNew = isNew;
  515. }
  516. /**
  517. * 获取:是否新商品
  518. */
  519. public Integer getIsNew() {
  520. return isNew;
  521. }
  522. /**
  523. * 设置:商品单位
  524. */
  525. public void setGoodsUnit(String goodsUnit) {
  526. this.goodsUnit = goodsUnit;
  527. }
  528. /**
  529. * 获取:商品单位
  530. */
  531. public String getGoodsUnit() {
  532. return goodsUnit;
  533. }
  534. /**
  535. * 设置:商品主图
  536. */
  537. public void setPrimaryPicUrl(String primaryPicUrl) {
  538. this.primaryPicUrl = primaryPicUrl;
  539. }
  540. /**
  541. * 获取:商品主图
  542. */
  543. public String getPrimaryPicUrl() {
  544. return primaryPicUrl;
  545. }
  546. /**
  547. * 设置:商品列表图
  548. */
  549. public void setListPicUrl(String listPicUrl) {
  550. this.listPicUrl = listPicUrl;
  551. }
  552. /**
  553. * 获取:商品列表图
  554. */
  555. public String getListPicUrl() {
  556. return listPicUrl;
  557. }
  558. public BigDecimal getGoodsRate() {
  559. return goodsRate;
  560. }
  561. public void setGoodsRate(BigDecimal goodsRate) {
  562. this.goodsRate = goodsRate;
  563. }
  564. // /**
  565. // * 设置:零售价格
  566. // */
  567. // public void setRetailPrice(BigDecimal retailPrice) {
  568. // this.retailPrice = retailPrice;
  569. // }
  570. //
  571. // /**
  572. // * 获取:零售价格
  573. // */
  574. // public BigDecimal getRetailPrice() {
  575. // return retailPrice;
  576. // }
  577. /**
  578. * 设置:销售量
  579. */
  580. public void setSellVolume(Integer sellVolume) {
  581. this.sellVolume = sellVolume;
  582. }
  583. /**
  584. * 获取:销售量
  585. */
  586. public Integer getSellVolume() {
  587. return sellVolume;
  588. }
  589. /**
  590. * 设置:主sku product_id
  591. */
  592. public void setPrimaryProductId(Long primaryProductId) {
  593. this.primaryProductId = primaryProductId;
  594. }
  595. /**
  596. * 获取:主sku product_id
  597. */
  598. public Long getPrimaryProductId() {
  599. return primaryProductId;
  600. }
  601. /**
  602. * 设置:单位价格,单价
  603. */
  604. public void setUnitPrice(BigDecimal unitPrice) {
  605. this.unitPrice = unitPrice;
  606. }
  607. /**
  608. * 获取:单位价格,单价
  609. */
  610. public BigDecimal getUnitPrice() {
  611. return unitPrice;
  612. }
  613. /**
  614. * 设置:推广描述
  615. */
  616. public void setPromotionDesc(String promotionDesc) {
  617. this.promotionDesc = promotionDesc;
  618. }
  619. /**
  620. * 获取:推广描述
  621. */
  622. public String getPromotionDesc() {
  623. return promotionDesc;
  624. }
  625. /**
  626. * 设置:推广标签
  627. */
  628. public void setPromotionTag(String promotionTag) {
  629. this.promotionTag = promotionTag;
  630. }
  631. /**
  632. * 获取:推广标签
  633. */
  634. public String getPromotionTag() {
  635. return promotionTag;
  636. }
  637. /**
  638. * 设置:APP专享价
  639. */
  640. public void setAppExclusivePrice(BigDecimal appExclusivePrice) {
  641. this.appExclusivePrice = appExclusivePrice;
  642. }
  643. /**
  644. * 获取:APP专享价
  645. */
  646. public BigDecimal getAppExclusivePrice() {
  647. return appExclusivePrice;
  648. }
  649. /**
  650. * 设置:是否是APP专属
  651. */
  652. public void setIsAppExclusive(Integer isAppExclusive) {
  653. this.isAppExclusive = isAppExclusive;
  654. }
  655. /**
  656. * 获取:是否是APP专属
  657. */
  658. public Integer getIsAppExclusive() {
  659. return isAppExclusive;
  660. }
  661. /**
  662. * 设置:限购
  663. */
  664. public void setIsLimited(Integer isLimited) {
  665. this.isLimited = isLimited;
  666. }
  667. /**
  668. * 获取:限购
  669. */
  670. public Integer getIsLimited() {
  671. return isLimited;
  672. }
  673. /**
  674. * 设置:热销
  675. */
  676. public void setIsHot(Integer isHot) {
  677. this.isHot = isHot;
  678. }
  679. /**
  680. * 获取:热销
  681. */
  682. public Integer getIsHot() {
  683. return isHot;
  684. }
  685. // public BigDecimal getMarketPrice() {
  686. // return marketPrice;
  687. // }
  688. //
  689. // public void setMarketPrice(BigDecimal marketPrice) {
  690. // this.marketPrice = marketPrice;
  691. // }
  692. public List<GoodsAttributeEntity> getAttributeEntityList() {
  693. return attributeEntityList;
  694. }
  695. public void setAttributeEntityList(List<GoodsAttributeEntity> attributeEntityList) {
  696. this.attributeEntityList = attributeEntityList;
  697. }
  698. public Long getCreateUserId() {
  699. return createUserId;
  700. }
  701. public void setCreateUserId(Long createUserId) {
  702. this.createUserId = createUserId;
  703. }
  704. public Long getUpdateUserId() {
  705. return updateUserId;
  706. }
  707. public void setUpdateUserId(Long updateUserId) {
  708. this.updateUserId = updateUserId;
  709. }
  710. public Date getUpdateTime() {
  711. return updateTime;
  712. }
  713. public void setUpdateTime(Date updateTime) {
  714. this.updateTime = updateTime;
  715. }
  716. public List<ProductEntity> getProductEntityList() {
  717. return productEntityList;
  718. }
  719. public void setProductEntityList(List<ProductEntity> productEntityList) {
  720. this.productEntityList = productEntityList;
  721. }
  722. public Integer getGoodsType() {
  723. return goodsType;
  724. }
  725. public void setGoodsType(Integer goodsType) {
  726. this.goodsType = goodsType;
  727. }
  728. public String getProdBarcode() {
  729. return prodBarcode;
  730. }
  731. public void setProdBarcode(String prodBarcode) {
  732. this.prodBarcode = prodBarcode;
  733. }
  734. public String getUnitCode() {
  735. return unitCode;
  736. }
  737. public void setUnitCode(String unitCode) {
  738. this.unitCode = unitCode;
  739. }
  740. public String getCusGoodsCode() {
  741. return cusGoodsCode;
  742. }
  743. public void setCusGoodsCode(String cusGoodsCode) {
  744. this.cusGoodsCode = cusGoodsCode;
  745. }
  746. public String getCiqProdModel() {
  747. return ciqProdModel;
  748. }
  749. public void setCiqProdModel(String ciqProdModel) {
  750. this.ciqProdModel = ciqProdModel;
  751. }
  752. public String getOriCntCode() {
  753. return oriCntCode;
  754. }
  755. public void setOriCntCode(String oriCntCode) {
  756. this.oriCntCode = oriCntCode;
  757. }
  758. public String getCusDeclEle() {
  759. return cusDeclEle;
  760. }
  761. public void setCusDeclEle(String cusDeclEle) {
  762. this.cusDeclEle = cusDeclEle;
  763. }
  764. public String getCusRecCode() {
  765. return cusRecCode;
  766. }
  767. public void setCusRecCode(String cusRecCode) {
  768. this.cusRecCode = cusRecCode;
  769. }
  770. }