GoodsEntity.java 17 KB

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