GoodsEntity.java 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308
  1. package com.kmall.admin.entity;
  2. import com.kmall.admin.haikong.vo.QueryGoodsVO;
  3. import org.springframework.beans.BeanUtils;
  4. import java.io.Serializable;
  5. import java.math.BigDecimal;
  6. import java.util.*;
  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 oriCntName;
  114. /**
  115. * 海关申报要素,报统一版
  116. */
  117. private String cusDeclEle;
  118. /**
  119. * 海关备案编号,企业自编,用于报园区
  120. */
  121. private String cusRecCode;
  122. private String sku;
  123. private String goodsBizType;
  124. private String createrSn;
  125. private Date createTime;
  126. private String moderSn;
  127. private Date modTime;
  128. private Date tstm;
  129. /**
  130. * 用户ID
  131. */
  132. private Long createUserId;
  133. private Long createUserDeptId;
  134. private String prodName;
  135. public String getProdName() {
  136. return prodName;
  137. }
  138. public void setProdName(String prodName) {
  139. this.prodName = prodName;
  140. }
  141. private String prodRecordName; // 产品中文备案名称
  142. public String getProdRecordName() {
  143. return prodRecordName;
  144. }
  145. public void setProdRecordName(String prodRecordName) {
  146. this.prodRecordName = prodRecordName;
  147. }
  148. // 商品规格
  149. // 商品规格编号
  150. /**
  151. * 用户ID
  152. */
  153. private Long updateUserId;
  154. // 商品类型
  155. private Integer goodsType = 0; // 0普通 1 2团购
  156. private List<GoodsAttributeEntity> attributeEntityList = new ArrayList<>();
  157. private List<GoodsGalleryEntity> goodsImgList = new ArrayList<>();
  158. private List<ProductEntity> productEntityList = new ArrayList<>();
  159. /**
  160. * 翻译用字段
  161. */
  162. //属性类别
  163. private String attributeCategoryName;
  164. //视频地址
  165. private String videoUrl;
  166. private String stockNum;
  167. private String storeName;
  168. private String productId;
  169. private Integer storeId;
  170. /**
  171. * 导入翻译数据
  172. */
  173. //商品类型
  174. private String categoryName;
  175. //品牌
  176. private String brandName;
  177. //商户编号
  178. private String merchSn;
  179. private String merchName;
  180. private String thirdPartyMerchCode;
  181. private String isStockShare;
  182. //毛重,kg
  183. private BigDecimal grossWeight;
  184. //净重,kg
  185. private BigDecimal netWeight;
  186. private String isSupplierGoods;
  187. private String goodsIsStockShare;
  188. private String isStockShareBySuppler;
  189. /**
  190. * 商品库存数量变化后是否已共享,0:否,1:是(下单、退款、取消订单触发)
  191. */
  192. private String isGoodsShareStock;
  193. // PLU
  194. private String plu;
  195. // 英文名称
  196. private String englishName;
  197. // 成本价
  198. private BigDecimal costPrice;
  199. // 日常价
  200. private BigDecimal dailyPrice;
  201. // 最后销售时间
  202. private Date lastSaleTime;
  203. // MychemID
  204. private String mychemId;
  205. private String hsCode;
  206. private String hsCodeName;
  207. private String isSyncHsCode;
  208. private String isSyncGoodsRate;
  209. private BigDecimal impConsumTaxRate;
  210. private BigDecimal valueAddedTaxRate;
  211. private BigDecimal cosmThresholdValue;
  212. private BigDecimal legalUnit1Qty;
  213. private BigDecimal legalUnit2Qty;
  214. private Integer toBeRestored;
  215. /**
  216. * 预估税
  217. */
  218. private BigDecimal goodsTaxes;
  219. public GoodsEntity() {
  220. }
  221. public GoodsEntity(QueryGoodsVO queryGoodsVo) {
  222. BeanUtils.copyProperties(this, queryGoodsVo);
  223. this.goodsNumber = queryGoodsVo.getSellVolume();
  224. }
  225. public BigDecimal getGoodsTaxes() {
  226. return goodsTaxes;
  227. }
  228. public void setGoodsTaxes(BigDecimal goodsTaxes) {
  229. this.goodsTaxes = goodsTaxes;
  230. }
  231. public BigDecimal getCosmThresholdValue() {
  232. return cosmThresholdValue;
  233. }
  234. public void setCosmThresholdValue(BigDecimal cosmThresholdValue) {
  235. this.cosmThresholdValue = cosmThresholdValue;
  236. }
  237. public BigDecimal getLegalUnit1Qty() {
  238. return legalUnit1Qty;
  239. }
  240. public void setLegalUnit1Qty(BigDecimal legalUnit1Qty) {
  241. this.legalUnit1Qty = legalUnit1Qty;
  242. }
  243. public BigDecimal getLegalUnit2Qty() {
  244. return legalUnit2Qty;
  245. }
  246. public void setLegalUnit2Qty(BigDecimal legalUnit2Qty) {
  247. this.legalUnit2Qty = legalUnit2Qty;
  248. }
  249. public BigDecimal getImpConsumTaxRate() {
  250. return impConsumTaxRate;
  251. }
  252. public void setImpConsumTaxRate(BigDecimal impConsumTaxRate) {
  253. this.impConsumTaxRate = impConsumTaxRate;
  254. }
  255. public BigDecimal getValueAddedTaxRate() {
  256. return valueAddedTaxRate;
  257. }
  258. public void setValueAddedTaxRate(BigDecimal valueAddedTaxRate) {
  259. this.valueAddedTaxRate = valueAddedTaxRate;
  260. }
  261. public String getIsSyncGoodsRate() {
  262. return isSyncGoodsRate;
  263. }
  264. public void setIsSyncGoodsRate(String isSyncGoodsRate) {
  265. this.isSyncGoodsRate = isSyncGoodsRate;
  266. }
  267. public String getIsSyncHsCode() {
  268. return isSyncHsCode;
  269. }
  270. public void setIsSyncHsCode(String isSyncHsCode) {
  271. this.isSyncHsCode = isSyncHsCode;
  272. }
  273. public String getHsCode() {
  274. return hsCode;
  275. }
  276. public void setHsCode(String hsCode) {
  277. this.hsCode = hsCode;
  278. }
  279. public String getHsCodeName() {
  280. return hsCodeName;
  281. }
  282. public void setHsCodeName(String hsCodeName) {
  283. this.hsCodeName = hsCodeName;
  284. }
  285. public String getMychemId() {
  286. return mychemId;
  287. }
  288. public void setMychemId(String mychemId) {
  289. this.mychemId = mychemId;
  290. }
  291. private String activity;
  292. // 单价
  293. private BigDecimal retailPrice;
  294. // 优惠金额
  295. private BigDecimal discountedPrice;
  296. // 实际支付价
  297. private BigDecimal actualPaymentAmount;
  298. /**
  299. * 门店商品库存表 出区数
  300. */
  301. private Integer exitRegionNumber;
  302. public BigDecimal getRetailPrice() {
  303. return retailPrice;
  304. }
  305. public void setRetailPrice(BigDecimal retailPrice) {
  306. this.retailPrice = retailPrice;
  307. }
  308. public BigDecimal getDiscountedPrice() {
  309. return discountedPrice;
  310. }
  311. public void setDiscountedPrice(BigDecimal discountedPrice) {
  312. this.discountedPrice = discountedPrice;
  313. }
  314. public BigDecimal getActualPaymentAmount() {
  315. return actualPaymentAmount;
  316. }
  317. public void setActualPaymentAmount(BigDecimal actualPaymentAmount) {
  318. this.actualPaymentAmount = actualPaymentAmount;
  319. }
  320. public Date getLastSaleTime() {
  321. return lastSaleTime;
  322. }
  323. public void setLastSaleTime(Date lastSaleTime) {
  324. this.lastSaleTime = lastSaleTime;
  325. }
  326. public String getOriCntName() {
  327. return oriCntName;
  328. }
  329. public void setOriCntName(String oriCntName) {
  330. this.oriCntName = oriCntName;
  331. }
  332. public BigDecimal getCostPrice() {
  333. return costPrice;
  334. }
  335. public void setCostPrice(BigDecimal costPrice) {
  336. this.costPrice = costPrice;
  337. }
  338. public BigDecimal getDailyPrice() {
  339. return dailyPrice;
  340. }
  341. public void setDailyPrice(BigDecimal dailyPrice) {
  342. this.dailyPrice = dailyPrice;
  343. }
  344. public String getPlu() {
  345. return plu;
  346. }
  347. public void setPlu(String plu) {
  348. this.plu = plu;
  349. }
  350. public String getEnglishName() {
  351. return englishName;
  352. }
  353. public void setEnglishName(String englishName) {
  354. this.englishName = englishName;
  355. }
  356. public String getIsGoodsShareStock() {
  357. return isGoodsShareStock;
  358. }
  359. public void setIsGoodsShareStock(String isGoodsShareStock) {
  360. this.isGoodsShareStock = isGoodsShareStock;
  361. }
  362. public String getIsSupplierGoods() {
  363. return isSupplierGoods;
  364. }
  365. public void setIsSupplierGoods(String isSupplierGoods) {
  366. this.isSupplierGoods = isSupplierGoods;
  367. }
  368. public String getGoodsIsStockShare() {
  369. return goodsIsStockShare;
  370. }
  371. public void setGoodsIsStockShare(String goodsIsStockShare) {
  372. this.goodsIsStockShare = goodsIsStockShare;
  373. }
  374. public String getIsStockShareBySuppler() {
  375. return isStockShareBySuppler;
  376. }
  377. public void setIsStockShareBySuppler(String isStockShareBySuppler) {
  378. this.isStockShareBySuppler = isStockShareBySuppler;
  379. }
  380. public BigDecimal getGrossWeight() {
  381. return grossWeight;
  382. }
  383. public void setGrossWeight(BigDecimal grossWeight) {
  384. this.grossWeight = grossWeight;
  385. }
  386. public BigDecimal getNetWeight() {
  387. return netWeight;
  388. }
  389. public void setNetWeight(BigDecimal netWeight) {
  390. this.netWeight = netWeight;
  391. }
  392. public String getIsStockShare() {
  393. return isStockShare;
  394. }
  395. public void setIsStockShare(String isStockShare) {
  396. this.isStockShare = isStockShare;
  397. }
  398. public String getThirdPartyMerchCode() {
  399. return thirdPartyMerchCode;
  400. }
  401. public void setThirdPartyMerchCode(String thirdPartyMerchCode) {
  402. this.thirdPartyMerchCode = thirdPartyMerchCode;
  403. }
  404. public BigDecimal getStoreRetailPrice() {
  405. return storeRetailPrice;
  406. }
  407. public void setStoreRetailPrice(BigDecimal storeRetailPrice) {
  408. this.storeRetailPrice = storeRetailPrice;
  409. }
  410. public BigDecimal getStoreMarketPrice() {
  411. return storeMarketPrice;
  412. }
  413. public void setStoreMarketPrice(BigDecimal storeMarketPrice) {
  414. this.storeMarketPrice = storeMarketPrice;
  415. }
  416. public String getMerchName() {
  417. return merchName;
  418. }
  419. public void setMerchName(String merchName) {
  420. this.merchName = merchName;
  421. }
  422. public String getMerchSn() {
  423. return merchSn;
  424. }
  425. public void setMerchSn(String merchSn) {
  426. this.merchSn = merchSn;
  427. }
  428. public Integer getStoreId() {
  429. return storeId;
  430. }
  431. public void setStoreId(Integer storeId) {
  432. this.storeId = storeId;
  433. }
  434. public String getProductId() {
  435. return productId;
  436. }
  437. public void setProductId(String productId) {
  438. this.productId = productId;
  439. }
  440. public String getStockNum() {
  441. return stockNum;
  442. }
  443. public void setStockNum(String stockNum) {
  444. this.stockNum = stockNum;
  445. }
  446. public String getStoreName() {
  447. return storeName;
  448. }
  449. public void setStoreName(String storeName) {
  450. this.storeName = storeName;
  451. }
  452. public Integer getSupplierId() {
  453. return supplierId;
  454. }
  455. public void setSupplierId(Integer supplierId) {
  456. this.supplierId = supplierId;
  457. }
  458. public String getVideoUrl() {
  459. return videoUrl;
  460. }
  461. public void setVideoUrl(String videoUrl) {
  462. this.videoUrl = videoUrl;
  463. }
  464. public String getSku() {
  465. return sku;
  466. }
  467. public void setSku(String sku) {
  468. this.sku = sku;
  469. }
  470. public String getGoodsBizType() {
  471. return goodsBizType;
  472. }
  473. public void setGoodsBizType(String goodsBizType) {
  474. this.goodsBizType = goodsBizType;
  475. }
  476. public String getCreaterSn() {
  477. return createrSn;
  478. }
  479. public void setCreaterSn(String createrSn) {
  480. this.createrSn = createrSn;
  481. }
  482. public Date getCreateTime() {
  483. return createTime;
  484. }
  485. public void setCreateTime(Date createTime) {
  486. this.createTime = createTime;
  487. }
  488. public String getModerSn() {
  489. return moderSn;
  490. }
  491. public void setModerSn(String moderSn) {
  492. this.moderSn = moderSn;
  493. }
  494. public Date getModTime() {
  495. return modTime;
  496. }
  497. public void setModTime(Date modTime) {
  498. this.modTime = modTime;
  499. }
  500. public Date getTstm() {
  501. return tstm;
  502. }
  503. public void setTstm(Date tstm) {
  504. this.tstm = tstm;
  505. }
  506. public Long getCreateUserDeptId() {
  507. return createUserDeptId;
  508. }
  509. public void setCreateUserDeptId(Long createUserDeptId) {
  510. this.createUserDeptId = createUserDeptId;
  511. }
  512. public List<GoodsGalleryEntity> getGoodsImgList() {
  513. return goodsImgList;
  514. }
  515. public void setGoodsImgList(List<GoodsGalleryEntity> goodsImgList) {
  516. this.goodsImgList = goodsImgList;
  517. }
  518. public String getBrandName() {
  519. return brandName;
  520. }
  521. public void setBrandName(String brandName) {
  522. this.brandName = brandName;
  523. }
  524. public String getAttributeCategoryName() {
  525. return attributeCategoryName;
  526. }
  527. public void setAttributeCategoryName(String attributeCategoryName) {
  528. this.attributeCategoryName = attributeCategoryName;
  529. }
  530. public String getCategoryName() {
  531. return categoryName;
  532. }
  533. public void setCategoryName(String categoryName) {
  534. this.categoryName = categoryName;
  535. }
  536. /**
  537. * 设置:主键
  538. */
  539. public void setId(Long id) {
  540. this.id = id;
  541. }
  542. /**
  543. * 获取:主键
  544. */
  545. public Long getId() {
  546. return id;
  547. }
  548. /**
  549. * 设置:商品类型Id
  550. */
  551. public void setCategoryId(Integer categoryId) {
  552. this.categoryId = categoryId;
  553. }
  554. /**
  555. * 获取:商品类型Id
  556. */
  557. public Integer getCategoryId() {
  558. return categoryId;
  559. }
  560. /**
  561. * 设置:商品序列号
  562. */
  563. public void setGoodsSn(String goodsSn) {
  564. this.goodsSn = goodsSn;
  565. }
  566. /**
  567. * 获取:商品序列号
  568. */
  569. public String getGoodsSn() {
  570. return goodsSn;
  571. }
  572. /**
  573. * 设置:名称
  574. */
  575. public void setName(String name) {
  576. this.name = name;
  577. }
  578. /**
  579. * 获取:名称
  580. */
  581. public String getName() {
  582. return name;
  583. }
  584. public Integer getFreightId() {
  585. return freightId;
  586. }
  587. public void setFreightId(Integer freightId) {
  588. this.freightId = freightId;
  589. }
  590. /**
  591. * 设置:品牌Id
  592. */
  593. public void setBrandId(Integer brandId) {
  594. this.brandId = brandId;
  595. }
  596. /**
  597. * 获取:品牌Id
  598. */
  599. public Integer getBrandId() {
  600. return brandId;
  601. }
  602. public String getBrand() {
  603. return brand;
  604. }
  605. public void setBrand(String brand) {
  606. this.brand = brand;
  607. }
  608. /**
  609. * 设置:商品序列号
  610. */
  611. public void setGoodsNumber(Integer goodsNumber) {
  612. this.goodsNumber = goodsNumber;
  613. }
  614. /**
  615. * 获取:商品序列号
  616. */
  617. public Integer getGoodsNumber() {
  618. return goodsNumber;
  619. }
  620. /**
  621. * 设置:关键字
  622. */
  623. public void setKeywords(String keywords) {
  624. this.keywords = keywords;
  625. }
  626. /**
  627. * 获取:关键字
  628. */
  629. public String getKeywords() {
  630. return keywords;
  631. }
  632. /**
  633. * 设置:简明介绍
  634. */
  635. public void setGoodsBrief(String goodsBrief) {
  636. this.goodsBrief = goodsBrief;
  637. }
  638. /**
  639. * 获取:简明介绍
  640. */
  641. public String getGoodsBrief() {
  642. return goodsBrief;
  643. }
  644. /**
  645. * 设置:商品描述
  646. */
  647. public void setGoodsDesc(String goodsDesc) {
  648. this.goodsDesc = goodsDesc;
  649. }
  650. /**
  651. * 获取:商品描述
  652. */
  653. public String getGoodsDesc() {
  654. return goodsDesc;
  655. }
  656. /**
  657. * 设置:上架
  658. */
  659. public void setIsOnSale(Integer isOnSale) {
  660. this.isOnSale = isOnSale;
  661. }
  662. /**
  663. * 获取:上架
  664. */
  665. public Integer getIsOnSale() {
  666. return isOnSale;
  667. }
  668. /**
  669. * 设置:添加时间
  670. */
  671. public void setAddTime(Date addTime) {
  672. this.addTime = addTime;
  673. }
  674. /**
  675. * 获取:添加时间
  676. */
  677. public Date getAddTime() {
  678. return addTime;
  679. }
  680. /**
  681. * 设置:排序
  682. */
  683. public void setSortOrder(Integer sortOrder) {
  684. this.sortOrder = sortOrder;
  685. }
  686. /**
  687. * 获取:排序
  688. */
  689. public Integer getSortOrder() {
  690. return sortOrder;
  691. }
  692. /**
  693. * 设置:删除状态
  694. */
  695. public void setIsDelete(Integer isDelete) {
  696. this.isDelete = isDelete;
  697. }
  698. /**
  699. * 获取:删除状态
  700. */
  701. public Integer getIsDelete() {
  702. return isDelete;
  703. }
  704. /**
  705. * 设置:属性类别
  706. */
  707. public void setAttributeCategory(Integer attributeCategory) {
  708. this.attributeCategory = attributeCategory;
  709. }
  710. /**
  711. * 获取:属性类别
  712. */
  713. public Integer getAttributeCategory() {
  714. return attributeCategory;
  715. }
  716. /**
  717. * 设置:专柜价格
  718. */
  719. public void setCounterPrice(BigDecimal counterPrice) {
  720. this.counterPrice = counterPrice;
  721. }
  722. /**
  723. * 获取:专柜价格
  724. */
  725. public BigDecimal getCounterPrice() {
  726. return counterPrice;
  727. }
  728. /**
  729. * 设置:附加价格
  730. */
  731. public void setExtraPrice(BigDecimal extraPrice) {
  732. this.extraPrice = extraPrice;
  733. }
  734. /**
  735. * 获取:附加价格
  736. */
  737. public BigDecimal getExtraPrice() {
  738. return extraPrice;
  739. }
  740. /**
  741. * 设置:是否新商品
  742. */
  743. public void setIsNew(Integer isNew) {
  744. this.isNew = isNew;
  745. }
  746. /**
  747. * 获取:是否新商品
  748. */
  749. public Integer getIsNew() {
  750. return isNew;
  751. }
  752. /**
  753. * 设置:商品单位
  754. */
  755. public void setGoodsUnit(String goodsUnit) {
  756. this.goodsUnit = goodsUnit;
  757. }
  758. /**
  759. * 获取:商品单位
  760. */
  761. public String getGoodsUnit() {
  762. return goodsUnit;
  763. }
  764. /**
  765. * 设置:商品主图
  766. */
  767. public void setPrimaryPicUrl(String primaryPicUrl) {
  768. this.primaryPicUrl = primaryPicUrl;
  769. }
  770. /**
  771. * 获取:商品主图
  772. */
  773. public String getPrimaryPicUrl() {
  774. return primaryPicUrl;
  775. }
  776. /**
  777. * 设置:商品列表图
  778. */
  779. public void setListPicUrl(String listPicUrl) {
  780. this.listPicUrl = listPicUrl;
  781. }
  782. /**
  783. * 获取:商品列表图
  784. */
  785. public String getListPicUrl() {
  786. return listPicUrl;
  787. }
  788. public BigDecimal getGoodsRate() {
  789. return goodsRate;
  790. }
  791. public void setGoodsRate(BigDecimal goodsRate) {
  792. this.goodsRate = goodsRate;
  793. }
  794. // /**
  795. // * 设置:零售价格
  796. // */
  797. // public void setRetailPrice(BigDecimal retailPrice) {
  798. // this.retailPrice = retailPrice;
  799. // }
  800. //
  801. // /**
  802. // * 获取:零售价格
  803. // */
  804. // public BigDecimal getRetailPrice() {
  805. // return retailPrice;
  806. // }
  807. /**
  808. * 设置:销售量
  809. */
  810. public void setSellVolume(Integer sellVolume) {
  811. this.sellVolume = sellVolume;
  812. }
  813. /**
  814. * 获取:销售量
  815. */
  816. public Integer getSellVolume() {
  817. return sellVolume;
  818. }
  819. /**
  820. * 设置:主sku product_id
  821. */
  822. public void setPrimaryProductId(Long primaryProductId) {
  823. this.primaryProductId = primaryProductId;
  824. }
  825. /**
  826. * 获取:主sku product_id
  827. */
  828. public Long getPrimaryProductId() {
  829. return primaryProductId;
  830. }
  831. /**
  832. * 设置:单位价格,单价
  833. */
  834. public void setUnitPrice(BigDecimal unitPrice) {
  835. this.unitPrice = unitPrice;
  836. }
  837. /**
  838. * 获取:单位价格,单价
  839. */
  840. public BigDecimal getUnitPrice() {
  841. return unitPrice;
  842. }
  843. /**
  844. * 设置:推广描述
  845. */
  846. public void setPromotionDesc(String promotionDesc) {
  847. this.promotionDesc = promotionDesc;
  848. }
  849. /**
  850. * 获取:推广描述
  851. */
  852. public String getPromotionDesc() {
  853. return promotionDesc;
  854. }
  855. /**
  856. * 设置:推广标签
  857. */
  858. public void setPromotionTag(String promotionTag) {
  859. this.promotionTag = promotionTag;
  860. }
  861. /**
  862. * 获取:推广标签
  863. */
  864. public String getPromotionTag() {
  865. return promotionTag;
  866. }
  867. /**
  868. * 设置:APP专享价
  869. */
  870. public void setAppExclusivePrice(BigDecimal appExclusivePrice) {
  871. this.appExclusivePrice = appExclusivePrice;
  872. }
  873. /**
  874. * 获取:APP专享价
  875. */
  876. public BigDecimal getAppExclusivePrice() {
  877. return appExclusivePrice;
  878. }
  879. /**
  880. * 设置:是否是APP专属
  881. */
  882. public void setIsAppExclusive(Integer isAppExclusive) {
  883. this.isAppExclusive = isAppExclusive;
  884. }
  885. /**
  886. * 获取:是否是APP专属
  887. */
  888. public Integer getIsAppExclusive() {
  889. return isAppExclusive;
  890. }
  891. /**
  892. * 设置:限购
  893. */
  894. public void setIsLimited(Integer isLimited) {
  895. this.isLimited = isLimited;
  896. }
  897. /**
  898. * 获取:限购
  899. */
  900. public Integer getIsLimited() {
  901. return isLimited;
  902. }
  903. /**
  904. * 设置:热销
  905. */
  906. public void setIsHot(Integer isHot) {
  907. this.isHot = isHot;
  908. }
  909. /**
  910. * 获取:热销
  911. */
  912. public Integer getIsHot() {
  913. return isHot;
  914. }
  915. // public BigDecimal getMarketPrice() {
  916. // return marketPrice;
  917. // }
  918. //
  919. // public void setMarketPrice(BigDecimal marketPrice) {
  920. // this.marketPrice = marketPrice;
  921. // }
  922. public List<GoodsAttributeEntity> getAttributeEntityList() {
  923. return attributeEntityList;
  924. }
  925. public void setAttributeEntityList(List<GoodsAttributeEntity> attributeEntityList) {
  926. this.attributeEntityList = attributeEntityList;
  927. }
  928. public Long getCreateUserId() {
  929. return createUserId;
  930. }
  931. public void setCreateUserId(Long createUserId) {
  932. this.createUserId = createUserId;
  933. }
  934. public Long getUpdateUserId() {
  935. return updateUserId;
  936. }
  937. public void setUpdateUserId(Long updateUserId) {
  938. this.updateUserId = updateUserId;
  939. }
  940. public Date getUpdateTime() {
  941. return updateTime;
  942. }
  943. public void setUpdateTime(Date updateTime) {
  944. this.updateTime = updateTime;
  945. }
  946. public List<ProductEntity> getProductEntityList() {
  947. return productEntityList;
  948. }
  949. public void setProductEntityList(List<ProductEntity> productEntityList) {
  950. this.productEntityList = productEntityList;
  951. }
  952. public Integer getGoodsType() {
  953. return goodsType;
  954. }
  955. public void setGoodsType(Integer goodsType) {
  956. this.goodsType = goodsType;
  957. }
  958. public String getProdBarcode() {
  959. return prodBarcode;
  960. }
  961. public void setProdBarcode(String prodBarcode) {
  962. this.prodBarcode = prodBarcode;
  963. }
  964. public String getUnitCode() {
  965. return unitCode;
  966. }
  967. public void setUnitCode(String unitCode) {
  968. this.unitCode = unitCode;
  969. }
  970. public String getCusGoodsCode() {
  971. return cusGoodsCode;
  972. }
  973. public void setCusGoodsCode(String cusGoodsCode) {
  974. this.cusGoodsCode = cusGoodsCode;
  975. }
  976. public String getCiqProdModel() {
  977. return ciqProdModel;
  978. }
  979. public void setCiqProdModel(String ciqProdModel) {
  980. this.ciqProdModel = ciqProdModel;
  981. }
  982. public String getOriCntCode() {
  983. return oriCntCode;
  984. }
  985. public void setOriCntCode(String oriCntCode) {
  986. this.oriCntCode = oriCntCode;
  987. }
  988. public String getCusDeclEle() {
  989. return cusDeclEle;
  990. }
  991. public void setCusDeclEle(String cusDeclEle) {
  992. this.cusDeclEle = cusDeclEle;
  993. }
  994. public String getCusRecCode() {
  995. return cusRecCode;
  996. }
  997. public void setCusRecCode(String cusRecCode) {
  998. this.cusRecCode = cusRecCode;
  999. }
  1000. public String getActivity() {
  1001. return activity;
  1002. }
  1003. public void setActivity(String activity) {
  1004. this.activity = activity;
  1005. }
  1006. public Integer getToBeRestored() {
  1007. return toBeRestored;
  1008. }
  1009. public void setToBeRestored(Integer toBeRestored) {
  1010. this.toBeRestored = toBeRestored;
  1011. }
  1012. public Integer getExitRegionNumber() {
  1013. return exitRegionNumber;
  1014. }
  1015. public void setExitRegionNumber(Integer exitRegionNumber) {
  1016. this.exitRegionNumber = exitRegionNumber;
  1017. }
  1018. /**
  1019. * 重写hashCode方法,用作排序
  1020. */
  1021. @Override
  1022. public int hashCode() {
  1023. String s = this.prodBarcode + this.sku + this.storeId;
  1024. return s.hashCode();
  1025. }
  1026. /**
  1027. * 重写equals
  1028. * @param obj 需要对比的对象
  1029. */
  1030. @Override
  1031. public boolean equals(Object obj) {
  1032. if (Objects.isNull(obj)) {
  1033. return false;
  1034. }
  1035. if (obj instanceof GoodsEntity) {
  1036. return this.hashCode() == obj.hashCode();
  1037. }
  1038. return false;
  1039. }
  1040. }