GoodsEntity.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  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. //商品库存
  25. private Integer goodsNumber;
  26. //关键字
  27. private String keywords;
  28. //简明介绍
  29. private String goodsBrief;
  30. //商品描述
  31. private String goodsDesc;
  32. //上架
  33. private Integer isOnSale;
  34. //添加时间
  35. private Date addTime;
  36. //修改时间
  37. private Date updateTime;
  38. //排序
  39. private Integer sortOrder;
  40. //删除状态
  41. private Integer isDelete;
  42. //属性类别
  43. private Integer attributeCategory;
  44. //库存价格
  45. private BigDecimal counterPrice;
  46. //附加价格
  47. private BigDecimal extraPrice;
  48. //是否新商品
  49. private Integer isNew;
  50. //商品单位
  51. private String goodsUnit;
  52. //商品主图
  53. private String primaryPicUrl;
  54. //商品列表图
  55. private String listPicUrl;
  56. //零售价格
  57. private BigDecimal retailPrice;
  58. //销售量
  59. private Integer sellVolume;
  60. //主sku product_id
  61. private Long primaryProductId;
  62. //单位价格,单价
  63. private BigDecimal unitPrice;
  64. //推广描述
  65. private String promotionDesc;
  66. //推广标签
  67. private String promotionTag;
  68. //APP专享价
  69. private BigDecimal appExclusivePrice;
  70. //是否是APP专属
  71. private Integer isAppExclusive;
  72. //限购
  73. private Integer isLimited;
  74. //热销
  75. private Integer isHot;
  76. //市场价
  77. private BigDecimal marketPrice;
  78. /**
  79. * 用户ID
  80. */
  81. private Long createUserId;
  82. private Long createUserDeptId;
  83. /**
  84. * 用户ID
  85. */
  86. private Long updateUserId;
  87. // 商品类型
  88. private Integer goodsType = 0; // 0普通 1 2团购
  89. List<GoodsAttributeEntity> attributeEntityList = new ArrayList<>();
  90. List<GoodsGalleryEntity> goodsImgList = new ArrayList<>();
  91. List<ProductEntity> productEntityList = new ArrayList<>();
  92. /**
  93. * 翻译用字段
  94. */
  95. //商品类型
  96. private String categoryName;
  97. //属性类别
  98. private String attributeCategoryName;
  99. //品牌
  100. private String brandName;
  101. private String sku;
  102. private String goodsBizType;
  103. private String createrSn;
  104. private Date createTime;
  105. private String moderSn;
  106. private Date modTime;
  107. private Date tstm;
  108. public String getSku() {
  109. return sku;
  110. }
  111. public void setSku(String sku) {
  112. this.sku = sku;
  113. }
  114. public String getGoodsBizType() {
  115. return goodsBizType;
  116. }
  117. public void setGoodsBizType(String goodsBizType) {
  118. this.goodsBizType = goodsBizType;
  119. }
  120. public String getCreaterSn() {
  121. return createrSn;
  122. }
  123. public void setCreaterSn(String createrSn) {
  124. this.createrSn = createrSn;
  125. }
  126. public Date getCreateTime() {
  127. return createTime;
  128. }
  129. public void setCreateTime(Date createTime) {
  130. this.createTime = createTime;
  131. }
  132. public String getModerSn() {
  133. return moderSn;
  134. }
  135. public void setModerSn(String moderSn) {
  136. this.moderSn = moderSn;
  137. }
  138. public Date getModTime() {
  139. return modTime;
  140. }
  141. public void setModTime(Date modTime) {
  142. this.modTime = modTime;
  143. }
  144. public Date getTstm() {
  145. return tstm;
  146. }
  147. public void setTstm(Date tstm) {
  148. this.tstm = tstm;
  149. }
  150. public Long getCreateUserDeptId() {
  151. return createUserDeptId;
  152. }
  153. public void setCreateUserDeptId(Long createUserDeptId) {
  154. this.createUserDeptId = createUserDeptId;
  155. }
  156. public List<GoodsGalleryEntity> getGoodsImgList() {
  157. return goodsImgList;
  158. }
  159. public void setGoodsImgList(List<GoodsGalleryEntity> goodsImgList) {
  160. this.goodsImgList = goodsImgList;
  161. }
  162. public String getBrandName() {
  163. return brandName;
  164. }
  165. public void setBrandName(String brandName) {
  166. this.brandName = brandName;
  167. }
  168. public String getAttributeCategoryName() {
  169. return attributeCategoryName;
  170. }
  171. public void setAttributeCategoryName(String attributeCategoryName) {
  172. this.attributeCategoryName = attributeCategoryName;
  173. }
  174. public String getCategoryName() {
  175. return categoryName;
  176. }
  177. public void setCategoryName(String categoryName) {
  178. this.categoryName = categoryName;
  179. }
  180. /**
  181. * 设置:主键
  182. */
  183. public void setId(Long id) {
  184. this.id = id;
  185. }
  186. /**
  187. * 获取:主键
  188. */
  189. public Long getId() {
  190. return id;
  191. }
  192. /**
  193. * 设置:商品类型Id
  194. */
  195. public void setCategoryId(Integer categoryId) {
  196. this.categoryId = categoryId;
  197. }
  198. /**
  199. * 获取:商品类型Id
  200. */
  201. public Integer getCategoryId() {
  202. return categoryId;
  203. }
  204. /**
  205. * 设置:商品序列号
  206. */
  207. public void setGoodsSn(String goodsSn) {
  208. this.goodsSn = goodsSn;
  209. }
  210. /**
  211. * 获取:商品序列号
  212. */
  213. public String getGoodsSn() {
  214. return goodsSn;
  215. }
  216. /**
  217. * 设置:名称
  218. */
  219. public void setName(String name) {
  220. this.name = name;
  221. }
  222. /**
  223. * 获取:名称
  224. */
  225. public String getName() {
  226. return name;
  227. }
  228. /**
  229. * 设置:品牌Id
  230. */
  231. public void setBrandId(Integer brandId) {
  232. this.brandId = brandId;
  233. }
  234. /**
  235. * 获取:品牌Id
  236. */
  237. public Integer getBrandId() {
  238. return brandId;
  239. }
  240. /**
  241. * 设置:商品序列号
  242. */
  243. public void setGoodsNumber(Integer goodsNumber) {
  244. this.goodsNumber = goodsNumber;
  245. }
  246. /**
  247. * 获取:商品序列号
  248. */
  249. public Integer getGoodsNumber() {
  250. return goodsNumber;
  251. }
  252. /**
  253. * 设置:关键字
  254. */
  255. public void setKeywords(String keywords) {
  256. this.keywords = keywords;
  257. }
  258. /**
  259. * 获取:关键字
  260. */
  261. public String getKeywords() {
  262. return keywords;
  263. }
  264. /**
  265. * 设置:简明介绍
  266. */
  267. public void setGoodsBrief(String goodsBrief) {
  268. this.goodsBrief = goodsBrief;
  269. }
  270. /**
  271. * 获取:简明介绍
  272. */
  273. public String getGoodsBrief() {
  274. return goodsBrief;
  275. }
  276. /**
  277. * 设置:商品描述
  278. */
  279. public void setGoodsDesc(String goodsDesc) {
  280. this.goodsDesc = goodsDesc;
  281. }
  282. /**
  283. * 获取:商品描述
  284. */
  285. public String getGoodsDesc() {
  286. return goodsDesc;
  287. }
  288. /**
  289. * 设置:上架
  290. */
  291. public void setIsOnSale(Integer isOnSale) {
  292. this.isOnSale = isOnSale;
  293. }
  294. /**
  295. * 获取:上架
  296. */
  297. public Integer getIsOnSale() {
  298. return isOnSale;
  299. }
  300. /**
  301. * 设置:添加时间
  302. */
  303. public void setAddTime(Date addTime) {
  304. this.addTime = addTime;
  305. }
  306. /**
  307. * 获取:添加时间
  308. */
  309. public Date getAddTime() {
  310. return addTime;
  311. }
  312. /**
  313. * 设置:排序
  314. */
  315. public void setSortOrder(Integer sortOrder) {
  316. this.sortOrder = sortOrder;
  317. }
  318. /**
  319. * 获取:排序
  320. */
  321. public Integer getSortOrder() {
  322. return sortOrder;
  323. }
  324. /**
  325. * 设置:删除状态
  326. */
  327. public void setIsDelete(Integer isDelete) {
  328. this.isDelete = isDelete;
  329. }
  330. /**
  331. * 获取:删除状态
  332. */
  333. public Integer getIsDelete() {
  334. return isDelete;
  335. }
  336. /**
  337. * 设置:属性类别
  338. */
  339. public void setAttributeCategory(Integer attributeCategory) {
  340. this.attributeCategory = attributeCategory;
  341. }
  342. /**
  343. * 获取:属性类别
  344. */
  345. public Integer getAttributeCategory() {
  346. return attributeCategory;
  347. }
  348. /**
  349. * 设置:专柜价格
  350. */
  351. public void setCounterPrice(BigDecimal counterPrice) {
  352. this.counterPrice = counterPrice;
  353. }
  354. /**
  355. * 获取:专柜价格
  356. */
  357. public BigDecimal getCounterPrice() {
  358. return counterPrice;
  359. }
  360. /**
  361. * 设置:附加价格
  362. */
  363. public void setExtraPrice(BigDecimal extraPrice) {
  364. this.extraPrice = extraPrice;
  365. }
  366. /**
  367. * 获取:附加价格
  368. */
  369. public BigDecimal getExtraPrice() {
  370. return extraPrice;
  371. }
  372. /**
  373. * 设置:是否新商品
  374. */
  375. public void setIsNew(Integer isNew) {
  376. this.isNew = isNew;
  377. }
  378. /**
  379. * 获取:是否新商品
  380. */
  381. public Integer getIsNew() {
  382. return isNew;
  383. }
  384. /**
  385. * 设置:商品单位
  386. */
  387. public void setGoodsUnit(String goodsUnit) {
  388. this.goodsUnit = goodsUnit;
  389. }
  390. /**
  391. * 获取:商品单位
  392. */
  393. public String getGoodsUnit() {
  394. return goodsUnit;
  395. }
  396. /**
  397. * 设置:商品主图
  398. */
  399. public void setPrimaryPicUrl(String primaryPicUrl) {
  400. this.primaryPicUrl = primaryPicUrl;
  401. }
  402. /**
  403. * 获取:商品主图
  404. */
  405. public String getPrimaryPicUrl() {
  406. return primaryPicUrl;
  407. }
  408. /**
  409. * 设置:商品列表图
  410. */
  411. public void setListPicUrl(String listPicUrl) {
  412. this.listPicUrl = listPicUrl;
  413. }
  414. /**
  415. * 获取:商品列表图
  416. */
  417. public String getListPicUrl() {
  418. return listPicUrl;
  419. }
  420. /**
  421. * 设置:零售价格
  422. */
  423. public void setRetailPrice(BigDecimal retailPrice) {
  424. this.retailPrice = retailPrice;
  425. }
  426. /**
  427. * 获取:零售价格
  428. */
  429. public BigDecimal getRetailPrice() {
  430. return retailPrice;
  431. }
  432. /**
  433. * 设置:销售量
  434. */
  435. public void setSellVolume(Integer sellVolume) {
  436. this.sellVolume = sellVolume;
  437. }
  438. /**
  439. * 获取:销售量
  440. */
  441. public Integer getSellVolume() {
  442. return sellVolume;
  443. }
  444. /**
  445. * 设置:主sku product_id
  446. */
  447. public void setPrimaryProductId(Long primaryProductId) {
  448. this.primaryProductId = primaryProductId;
  449. }
  450. /**
  451. * 获取:主sku product_id
  452. */
  453. public Long getPrimaryProductId() {
  454. return primaryProductId;
  455. }
  456. /**
  457. * 设置:单位价格,单价
  458. */
  459. public void setUnitPrice(BigDecimal unitPrice) {
  460. this.unitPrice = unitPrice;
  461. }
  462. /**
  463. * 获取:单位价格,单价
  464. */
  465. public BigDecimal getUnitPrice() {
  466. return unitPrice;
  467. }
  468. /**
  469. * 设置:推广描述
  470. */
  471. public void setPromotionDesc(String promotionDesc) {
  472. this.promotionDesc = promotionDesc;
  473. }
  474. /**
  475. * 获取:推广描述
  476. */
  477. public String getPromotionDesc() {
  478. return promotionDesc;
  479. }
  480. /**
  481. * 设置:推广标签
  482. */
  483. public void setPromotionTag(String promotionTag) {
  484. this.promotionTag = promotionTag;
  485. }
  486. /**
  487. * 获取:推广标签
  488. */
  489. public String getPromotionTag() {
  490. return promotionTag;
  491. }
  492. /**
  493. * 设置:APP专享价
  494. */
  495. public void setAppExclusivePrice(BigDecimal appExclusivePrice) {
  496. this.appExclusivePrice = appExclusivePrice;
  497. }
  498. /**
  499. * 获取:APP专享价
  500. */
  501. public BigDecimal getAppExclusivePrice() {
  502. return appExclusivePrice;
  503. }
  504. /**
  505. * 设置:是否是APP专属
  506. */
  507. public void setIsAppExclusive(Integer isAppExclusive) {
  508. this.isAppExclusive = isAppExclusive;
  509. }
  510. /**
  511. * 获取:是否是APP专属
  512. */
  513. public Integer getIsAppExclusive() {
  514. return isAppExclusive;
  515. }
  516. /**
  517. * 设置:限购
  518. */
  519. public void setIsLimited(Integer isLimited) {
  520. this.isLimited = isLimited;
  521. }
  522. /**
  523. * 获取:限购
  524. */
  525. public Integer getIsLimited() {
  526. return isLimited;
  527. }
  528. /**
  529. * 设置:热销
  530. */
  531. public void setIsHot(Integer isHot) {
  532. this.isHot = isHot;
  533. }
  534. /**
  535. * 获取:热销
  536. */
  537. public Integer getIsHot() {
  538. return isHot;
  539. }
  540. public BigDecimal getMarketPrice() {
  541. return marketPrice;
  542. }
  543. public void setMarketPrice(BigDecimal marketPrice) {
  544. this.marketPrice = marketPrice;
  545. }
  546. public List<GoodsAttributeEntity> getAttributeEntityList() {
  547. return attributeEntityList;
  548. }
  549. public void setAttributeEntityList(List<GoodsAttributeEntity> attributeEntityList) {
  550. this.attributeEntityList = attributeEntityList;
  551. }
  552. public Long getCreateUserId() {
  553. return createUserId;
  554. }
  555. public void setCreateUserId(Long createUserId) {
  556. this.createUserId = createUserId;
  557. }
  558. public Long getUpdateUserId() {
  559. return updateUserId;
  560. }
  561. public void setUpdateUserId(Long updateUserId) {
  562. this.updateUserId = updateUserId;
  563. }
  564. public Date getUpdateTime() {
  565. return updateTime;
  566. }
  567. public void setUpdateTime(Date updateTime) {
  568. this.updateTime = updateTime;
  569. }
  570. public List<ProductEntity> getProductEntityList() {
  571. return productEntityList;
  572. }
  573. public void setProductEntityList(List<ProductEntity> productEntityList) {
  574. this.productEntityList = productEntityList;
  575. }
  576. public Integer getGoodsType() {
  577. return goodsType;
  578. }
  579. public void setGoodsType(Integer goodsType) {
  580. this.goodsType = goodsType;
  581. }
  582. }