GoodsEntity.java 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  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. //毛重,kg
  163. private BigDecimal grossWeight;
  164. //净重,kg
  165. private BigDecimal netWeight;
  166. public BigDecimal getGrossWeight() {
  167. return grossWeight;
  168. }
  169. public void setGrossWeight(BigDecimal grossWeight) {
  170. this.grossWeight = grossWeight;
  171. }
  172. public BigDecimal getNetWeight() {
  173. return netWeight;
  174. }
  175. public void setNetWeight(BigDecimal netWeight) {
  176. this.netWeight = netWeight;
  177. }
  178. public String getIsStockShare() {
  179. return isStockShare;
  180. }
  181. public void setIsStockShare(String isStockShare) {
  182. this.isStockShare = isStockShare;
  183. }
  184. public String getThirdPartyMerchCode() {
  185. return thirdPartyMerchCode;
  186. }
  187. public void setThirdPartyMerchCode(String thirdPartyMerchCode) {
  188. this.thirdPartyMerchCode = thirdPartyMerchCode;
  189. }
  190. public BigDecimal getStoreRetailPrice() {
  191. return storeRetailPrice;
  192. }
  193. public void setStoreRetailPrice(BigDecimal storeRetailPrice) {
  194. this.storeRetailPrice = storeRetailPrice;
  195. }
  196. public BigDecimal getStoreMarketPrice() {
  197. return storeMarketPrice;
  198. }
  199. public void setStoreMarketPrice(BigDecimal storeMarketPrice) {
  200. this.storeMarketPrice = storeMarketPrice;
  201. }
  202. public String getMerchName() {
  203. return merchName;
  204. }
  205. public void setMerchName(String merchName) {
  206. this.merchName = merchName;
  207. }
  208. public String getMerchSn() {
  209. return merchSn;
  210. }
  211. public void setMerchSn(String merchSn) {
  212. this.merchSn = merchSn;
  213. }
  214. public Integer getStoreId() {
  215. return storeId;
  216. }
  217. public void setStoreId(Integer storeId) {
  218. this.storeId = storeId;
  219. }
  220. public String getProductId() {
  221. return productId;
  222. }
  223. public void setProductId(String productId) {
  224. this.productId = productId;
  225. }
  226. public String getStockNum() {
  227. return stockNum;
  228. }
  229. public void setStockNum(String stockNum) {
  230. this.stockNum = stockNum;
  231. }
  232. public String getStoreName() {
  233. return storeName;
  234. }
  235. public void setStoreName(String storeName) {
  236. this.storeName = storeName;
  237. }
  238. public Integer getSupplierId() {
  239. return supplierId;
  240. }
  241. public void setSupplierId(Integer supplierId) {
  242. this.supplierId = supplierId;
  243. }
  244. public String getVideoUrl() {
  245. return videoUrl;
  246. }
  247. public void setVideoUrl(String videoUrl) {
  248. this.videoUrl = videoUrl;
  249. }
  250. public String getSku() {
  251. return sku;
  252. }
  253. public void setSku(String sku) {
  254. this.sku = sku;
  255. }
  256. public String getGoodsBizType() {
  257. return goodsBizType;
  258. }
  259. public void setGoodsBizType(String goodsBizType) {
  260. this.goodsBizType = goodsBizType;
  261. }
  262. public String getCreaterSn() {
  263. return createrSn;
  264. }
  265. public void setCreaterSn(String createrSn) {
  266. this.createrSn = createrSn;
  267. }
  268. public Date getCreateTime() {
  269. return createTime;
  270. }
  271. public void setCreateTime(Date createTime) {
  272. this.createTime = createTime;
  273. }
  274. public String getModerSn() {
  275. return moderSn;
  276. }
  277. public void setModerSn(String moderSn) {
  278. this.moderSn = moderSn;
  279. }
  280. public Date getModTime() {
  281. return modTime;
  282. }
  283. public void setModTime(Date modTime) {
  284. this.modTime = modTime;
  285. }
  286. public Date getTstm() {
  287. return tstm;
  288. }
  289. public void setTstm(Date tstm) {
  290. this.tstm = tstm;
  291. }
  292. public Long getCreateUserDeptId() {
  293. return createUserDeptId;
  294. }
  295. public void setCreateUserDeptId(Long createUserDeptId) {
  296. this.createUserDeptId = createUserDeptId;
  297. }
  298. public List<GoodsGalleryEntity> getGoodsImgList() {
  299. return goodsImgList;
  300. }
  301. public void setGoodsImgList(List<GoodsGalleryEntity> goodsImgList) {
  302. this.goodsImgList = goodsImgList;
  303. }
  304. public String getBrandName() {
  305. return brandName;
  306. }
  307. public void setBrandName(String brandName) {
  308. this.brandName = brandName;
  309. }
  310. public String getAttributeCategoryName() {
  311. return attributeCategoryName;
  312. }
  313. public void setAttributeCategoryName(String attributeCategoryName) {
  314. this.attributeCategoryName = attributeCategoryName;
  315. }
  316. public String getCategoryName() {
  317. return categoryName;
  318. }
  319. public void setCategoryName(String categoryName) {
  320. this.categoryName = categoryName;
  321. }
  322. /**
  323. * 设置:主键
  324. */
  325. public void setId(Long id) {
  326. this.id = id;
  327. }
  328. /**
  329. * 获取:主键
  330. */
  331. public Long getId() {
  332. return id;
  333. }
  334. /**
  335. * 设置:商品类型Id
  336. */
  337. public void setCategoryId(Integer categoryId) {
  338. this.categoryId = categoryId;
  339. }
  340. /**
  341. * 获取:商品类型Id
  342. */
  343. public Integer getCategoryId() {
  344. return categoryId;
  345. }
  346. /**
  347. * 设置:商品序列号
  348. */
  349. public void setGoodsSn(String goodsSn) {
  350. this.goodsSn = goodsSn;
  351. }
  352. /**
  353. * 获取:商品序列号
  354. */
  355. public String getGoodsSn() {
  356. return goodsSn;
  357. }
  358. /**
  359. * 设置:名称
  360. */
  361. public void setName(String name) {
  362. this.name = name;
  363. }
  364. /**
  365. * 获取:名称
  366. */
  367. public String getName() {
  368. return name;
  369. }
  370. public Integer getFreightId() {
  371. return freightId;
  372. }
  373. public void setFreightId(Integer freightId) {
  374. this.freightId = freightId;
  375. }
  376. /**
  377. * 设置:品牌Id
  378. */
  379. public void setBrandId(Integer brandId) {
  380. this.brandId = brandId;
  381. }
  382. /**
  383. * 获取:品牌Id
  384. */
  385. public Integer getBrandId() {
  386. return brandId;
  387. }
  388. public String getBrand() {
  389. return brand;
  390. }
  391. public void setBrand(String brand) {
  392. this.brand = brand;
  393. }
  394. /**
  395. * 设置:商品序列号
  396. */
  397. public void setGoodsNumber(Integer goodsNumber) {
  398. this.goodsNumber = goodsNumber;
  399. }
  400. /**
  401. * 获取:商品序列号
  402. */
  403. public Integer getGoodsNumber() {
  404. return goodsNumber;
  405. }
  406. /**
  407. * 设置:关键字
  408. */
  409. public void setKeywords(String keywords) {
  410. this.keywords = keywords;
  411. }
  412. /**
  413. * 获取:关键字
  414. */
  415. public String getKeywords() {
  416. return keywords;
  417. }
  418. /**
  419. * 设置:简明介绍
  420. */
  421. public void setGoodsBrief(String goodsBrief) {
  422. this.goodsBrief = goodsBrief;
  423. }
  424. /**
  425. * 获取:简明介绍
  426. */
  427. public String getGoodsBrief() {
  428. return goodsBrief;
  429. }
  430. /**
  431. * 设置:商品描述
  432. */
  433. public void setGoodsDesc(String goodsDesc) {
  434. this.goodsDesc = goodsDesc;
  435. }
  436. /**
  437. * 获取:商品描述
  438. */
  439. public String getGoodsDesc() {
  440. return goodsDesc;
  441. }
  442. /**
  443. * 设置:上架
  444. */
  445. public void setIsOnSale(Integer isOnSale) {
  446. this.isOnSale = isOnSale;
  447. }
  448. /**
  449. * 获取:上架
  450. */
  451. public Integer getIsOnSale() {
  452. return isOnSale;
  453. }
  454. /**
  455. * 设置:添加时间
  456. */
  457. public void setAddTime(Date addTime) {
  458. this.addTime = addTime;
  459. }
  460. /**
  461. * 获取:添加时间
  462. */
  463. public Date getAddTime() {
  464. return addTime;
  465. }
  466. /**
  467. * 设置:排序
  468. */
  469. public void setSortOrder(Integer sortOrder) {
  470. this.sortOrder = sortOrder;
  471. }
  472. /**
  473. * 获取:排序
  474. */
  475. public Integer getSortOrder() {
  476. return sortOrder;
  477. }
  478. /**
  479. * 设置:删除状态
  480. */
  481. public void setIsDelete(Integer isDelete) {
  482. this.isDelete = isDelete;
  483. }
  484. /**
  485. * 获取:删除状态
  486. */
  487. public Integer getIsDelete() {
  488. return isDelete;
  489. }
  490. /**
  491. * 设置:属性类别
  492. */
  493. public void setAttributeCategory(Integer attributeCategory) {
  494. this.attributeCategory = attributeCategory;
  495. }
  496. /**
  497. * 获取:属性类别
  498. */
  499. public Integer getAttributeCategory() {
  500. return attributeCategory;
  501. }
  502. /**
  503. * 设置:专柜价格
  504. */
  505. public void setCounterPrice(BigDecimal counterPrice) {
  506. this.counterPrice = counterPrice;
  507. }
  508. /**
  509. * 获取:专柜价格
  510. */
  511. public BigDecimal getCounterPrice() {
  512. return counterPrice;
  513. }
  514. /**
  515. * 设置:附加价格
  516. */
  517. public void setExtraPrice(BigDecimal extraPrice) {
  518. this.extraPrice = extraPrice;
  519. }
  520. /**
  521. * 获取:附加价格
  522. */
  523. public BigDecimal getExtraPrice() {
  524. return extraPrice;
  525. }
  526. /**
  527. * 设置:是否新商品
  528. */
  529. public void setIsNew(Integer isNew) {
  530. this.isNew = isNew;
  531. }
  532. /**
  533. * 获取:是否新商品
  534. */
  535. public Integer getIsNew() {
  536. return isNew;
  537. }
  538. /**
  539. * 设置:商品单位
  540. */
  541. public void setGoodsUnit(String goodsUnit) {
  542. this.goodsUnit = goodsUnit;
  543. }
  544. /**
  545. * 获取:商品单位
  546. */
  547. public String getGoodsUnit() {
  548. return goodsUnit;
  549. }
  550. /**
  551. * 设置:商品主图
  552. */
  553. public void setPrimaryPicUrl(String primaryPicUrl) {
  554. this.primaryPicUrl = primaryPicUrl;
  555. }
  556. /**
  557. * 获取:商品主图
  558. */
  559. public String getPrimaryPicUrl() {
  560. return primaryPicUrl;
  561. }
  562. /**
  563. * 设置:商品列表图
  564. */
  565. public void setListPicUrl(String listPicUrl) {
  566. this.listPicUrl = listPicUrl;
  567. }
  568. /**
  569. * 获取:商品列表图
  570. */
  571. public String getListPicUrl() {
  572. return listPicUrl;
  573. }
  574. public BigDecimal getGoodsRate() {
  575. return goodsRate;
  576. }
  577. public void setGoodsRate(BigDecimal goodsRate) {
  578. this.goodsRate = goodsRate;
  579. }
  580. // /**
  581. // * 设置:零售价格
  582. // */
  583. // public void setRetailPrice(BigDecimal retailPrice) {
  584. // this.retailPrice = retailPrice;
  585. // }
  586. //
  587. // /**
  588. // * 获取:零售价格
  589. // */
  590. // public BigDecimal getRetailPrice() {
  591. // return retailPrice;
  592. // }
  593. /**
  594. * 设置:销售量
  595. */
  596. public void setSellVolume(Integer sellVolume) {
  597. this.sellVolume = sellVolume;
  598. }
  599. /**
  600. * 获取:销售量
  601. */
  602. public Integer getSellVolume() {
  603. return sellVolume;
  604. }
  605. /**
  606. * 设置:主sku product_id
  607. */
  608. public void setPrimaryProductId(Long primaryProductId) {
  609. this.primaryProductId = primaryProductId;
  610. }
  611. /**
  612. * 获取:主sku product_id
  613. */
  614. public Long getPrimaryProductId() {
  615. return primaryProductId;
  616. }
  617. /**
  618. * 设置:单位价格,单价
  619. */
  620. public void setUnitPrice(BigDecimal unitPrice) {
  621. this.unitPrice = unitPrice;
  622. }
  623. /**
  624. * 获取:单位价格,单价
  625. */
  626. public BigDecimal getUnitPrice() {
  627. return unitPrice;
  628. }
  629. /**
  630. * 设置:推广描述
  631. */
  632. public void setPromotionDesc(String promotionDesc) {
  633. this.promotionDesc = promotionDesc;
  634. }
  635. /**
  636. * 获取:推广描述
  637. */
  638. public String getPromotionDesc() {
  639. return promotionDesc;
  640. }
  641. /**
  642. * 设置:推广标签
  643. */
  644. public void setPromotionTag(String promotionTag) {
  645. this.promotionTag = promotionTag;
  646. }
  647. /**
  648. * 获取:推广标签
  649. */
  650. public String getPromotionTag() {
  651. return promotionTag;
  652. }
  653. /**
  654. * 设置:APP专享价
  655. */
  656. public void setAppExclusivePrice(BigDecimal appExclusivePrice) {
  657. this.appExclusivePrice = appExclusivePrice;
  658. }
  659. /**
  660. * 获取:APP专享价
  661. */
  662. public BigDecimal getAppExclusivePrice() {
  663. return appExclusivePrice;
  664. }
  665. /**
  666. * 设置:是否是APP专属
  667. */
  668. public void setIsAppExclusive(Integer isAppExclusive) {
  669. this.isAppExclusive = isAppExclusive;
  670. }
  671. /**
  672. * 获取:是否是APP专属
  673. */
  674. public Integer getIsAppExclusive() {
  675. return isAppExclusive;
  676. }
  677. /**
  678. * 设置:限购
  679. */
  680. public void setIsLimited(Integer isLimited) {
  681. this.isLimited = isLimited;
  682. }
  683. /**
  684. * 获取:限购
  685. */
  686. public Integer getIsLimited() {
  687. return isLimited;
  688. }
  689. /**
  690. * 设置:热销
  691. */
  692. public void setIsHot(Integer isHot) {
  693. this.isHot = isHot;
  694. }
  695. /**
  696. * 获取:热销
  697. */
  698. public Integer getIsHot() {
  699. return isHot;
  700. }
  701. // public BigDecimal getMarketPrice() {
  702. // return marketPrice;
  703. // }
  704. //
  705. // public void setMarketPrice(BigDecimal marketPrice) {
  706. // this.marketPrice = marketPrice;
  707. // }
  708. public List<GoodsAttributeEntity> getAttributeEntityList() {
  709. return attributeEntityList;
  710. }
  711. public void setAttributeEntityList(List<GoodsAttributeEntity> attributeEntityList) {
  712. this.attributeEntityList = attributeEntityList;
  713. }
  714. public Long getCreateUserId() {
  715. return createUserId;
  716. }
  717. public void setCreateUserId(Long createUserId) {
  718. this.createUserId = createUserId;
  719. }
  720. public Long getUpdateUserId() {
  721. return updateUserId;
  722. }
  723. public void setUpdateUserId(Long updateUserId) {
  724. this.updateUserId = updateUserId;
  725. }
  726. public Date getUpdateTime() {
  727. return updateTime;
  728. }
  729. public void setUpdateTime(Date updateTime) {
  730. this.updateTime = updateTime;
  731. }
  732. public List<ProductEntity> getProductEntityList() {
  733. return productEntityList;
  734. }
  735. public void setProductEntityList(List<ProductEntity> productEntityList) {
  736. this.productEntityList = productEntityList;
  737. }
  738. public Integer getGoodsType() {
  739. return goodsType;
  740. }
  741. public void setGoodsType(Integer goodsType) {
  742. this.goodsType = goodsType;
  743. }
  744. public String getProdBarcode() {
  745. return prodBarcode;
  746. }
  747. public void setProdBarcode(String prodBarcode) {
  748. this.prodBarcode = prodBarcode;
  749. }
  750. public String getUnitCode() {
  751. return unitCode;
  752. }
  753. public void setUnitCode(String unitCode) {
  754. this.unitCode = unitCode;
  755. }
  756. public String getCusGoodsCode() {
  757. return cusGoodsCode;
  758. }
  759. public void setCusGoodsCode(String cusGoodsCode) {
  760. this.cusGoodsCode = cusGoodsCode;
  761. }
  762. public String getCiqProdModel() {
  763. return ciqProdModel;
  764. }
  765. public void setCiqProdModel(String ciqProdModel) {
  766. this.ciqProdModel = ciqProdModel;
  767. }
  768. public String getOriCntCode() {
  769. return oriCntCode;
  770. }
  771. public void setOriCntCode(String oriCntCode) {
  772. this.oriCntCode = oriCntCode;
  773. }
  774. public String getCusDeclEle() {
  775. return cusDeclEle;
  776. }
  777. public void setCusDeclEle(String cusDeclEle) {
  778. this.cusDeclEle = cusDeclEle;
  779. }
  780. public String getCusRecCode() {
  781. return cusRecCode;
  782. }
  783. public void setCusRecCode(String cusRecCode) {
  784. this.cusRecCode = cusRecCode;
  785. }
  786. }