GoodsEntity.java 16 KB

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