GoodsEntity.java 18 KB

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