GoodsEntity.java 28 KB

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