GoodsEntity.java 16 KB

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