1
0

QueryGoodsVo.java 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. package com.kmall.admin.haikong.vo;
  2. import java.math.BigDecimal;
  3. import java.util.Objects;
  4. /**
  5. * 查询商品参数
  6. * @author lhm
  7. * @createDate 2021-11-15
  8. */
  9. public class QueryGoodsVo {
  10. /**
  11. * 商品条码
  12. */
  13. private String prodBarcode;
  14. /**
  15. * sku
  16. */
  17. private String sku;
  18. /**
  19. * 门店id
  20. */
  21. private Integer storeId;
  22. /**
  23. * 销售数
  24. */
  25. private Integer sellVolume;
  26. /**
  27. * 订单金额(含税价)
  28. */
  29. private BigDecimal retailPrice;
  30. /**
  31. * 商品预估税
  32. */
  33. private BigDecimal goodstaxes;
  34. /**
  35. * 商品优惠金额
  36. */
  37. private BigDecimal disCountedPrice;
  38. /**
  39. * 商品总库存
  40. */
  41. private Integer goodsNumber;
  42. /**
  43. * 商品编码
  44. */
  45. private String goodsSn;
  46. /**
  47. * 商品名称
  48. */
  49. private String name;
  50. /**
  51. * 商品图片
  52. */
  53. private String listPicUrl;
  54. /**
  55. * 市场价
  56. */
  57. private BigDecimal storeMarketPrice;
  58. /**
  59. * 零售价
  60. */
  61. private BigDecimal storeRetailPrice;
  62. /**
  63. * 商品门店库存
  64. */
  65. private Integer stockNum;
  66. /**
  67. * 门店名称
  68. */
  69. private String storeName;
  70. /**
  71. * 商品税率
  72. */
  73. private BigDecimal goodsRate;
  74. /**
  75. * 海关备案编码
  76. */
  77. private String hsCode;
  78. /**
  79. * 第一法定单位数量
  80. */
  81. private BigDecimal legalUnit1Qty;
  82. /**
  83. * 第二法定单位数量
  84. */
  85. private BigDecimal legalUnit2Qty;
  86. /**
  87. * 国检规格型号
  88. */
  89. private String ciqProdModel;
  90. /**
  91. * 退款待恢复库存
  92. */
  93. private Integer toBeRestored;
  94. /**
  95. * 出区数
  96. */
  97. private Integer exitRegionNumber;
  98. public String getProdBarcode() {
  99. return prodBarcode;
  100. }
  101. public void setProdBarcode(String prodBarcode) {
  102. this.prodBarcode = prodBarcode;
  103. }
  104. public String getSku() {
  105. return sku;
  106. }
  107. public void setSku(String sku) {
  108. this.sku = sku;
  109. }
  110. public Integer getStoreId() {
  111. return storeId;
  112. }
  113. public void setStoreId(Integer storeId) {
  114. this.storeId = storeId;
  115. }
  116. public Integer getSellVolume() {
  117. return sellVolume;
  118. }
  119. public void setSellVolume(Integer sellVolume) {
  120. this.sellVolume = sellVolume;
  121. }
  122. public BigDecimal getRetailPrice() {
  123. return retailPrice;
  124. }
  125. public void setRetailPrice(BigDecimal retailPrice) {
  126. this.retailPrice = retailPrice;
  127. }
  128. public BigDecimal getGoodstaxes() {
  129. return goodstaxes;
  130. }
  131. public void setGoodstaxes(BigDecimal goodstaxes) {
  132. this.goodstaxes = goodstaxes;
  133. }
  134. public BigDecimal getDisCountedPrice() {
  135. return disCountedPrice;
  136. }
  137. public void setDisCountedPrice(BigDecimal disCountedPrice) {
  138. this.disCountedPrice = disCountedPrice;
  139. }
  140. public Integer getGoodsNumber() {
  141. return goodsNumber;
  142. }
  143. public void setGoodsNumber(Integer goodsNumber) {
  144. this.goodsNumber = goodsNumber;
  145. }
  146. public String getGoodsSn() {
  147. return goodsSn;
  148. }
  149. public void setGoodsSn(String goodsSn) {
  150. this.goodsSn = goodsSn;
  151. }
  152. public String getName() {
  153. return name;
  154. }
  155. public void setName(String name) {
  156. this.name = name;
  157. }
  158. public String getListPicUrl() {
  159. return listPicUrl;
  160. }
  161. public void setListPicUrl(String listPicUrl) {
  162. this.listPicUrl = listPicUrl;
  163. }
  164. public BigDecimal getStoreMarketPrice() {
  165. return storeMarketPrice;
  166. }
  167. public void setStoreMarketPrice(BigDecimal storeMarketPrice) {
  168. this.storeMarketPrice = storeMarketPrice;
  169. }
  170. public BigDecimal getStoreRetailPrice() {
  171. return storeRetailPrice;
  172. }
  173. public void setStoreRetailPrice(BigDecimal storeRetailPrice) {
  174. this.storeRetailPrice = storeRetailPrice;
  175. }
  176. public Integer getStockNum() {
  177. return stockNum;
  178. }
  179. public void setStockNum(Integer stockNum) {
  180. this.stockNum = stockNum;
  181. }
  182. public String getStoreName() {
  183. return storeName;
  184. }
  185. public void setStoreName(String storeName) {
  186. this.storeName = storeName;
  187. }
  188. public BigDecimal getGoodsRate() {
  189. return goodsRate;
  190. }
  191. public void setGoodsRate(BigDecimal goodsRate) {
  192. this.goodsRate = goodsRate;
  193. }
  194. public String getHsCode() {
  195. return hsCode;
  196. }
  197. public void setHsCode(String hsCode) {
  198. this.hsCode = hsCode;
  199. }
  200. public BigDecimal getLegalUnit1Qty() {
  201. return legalUnit1Qty;
  202. }
  203. public void setLegalUnit1Qty(BigDecimal legalUnit1Qty) {
  204. this.legalUnit1Qty = legalUnit1Qty;
  205. }
  206. public BigDecimal getLegalUnit2Qty() {
  207. return legalUnit2Qty;
  208. }
  209. public void setLegalUnit2Qty(BigDecimal legalUnit2Qty) {
  210. this.legalUnit2Qty = legalUnit2Qty;
  211. }
  212. public String getCiqProdModel() {
  213. return ciqProdModel;
  214. }
  215. public void setCiqProdModel(String ciqProdModel) {
  216. this.ciqProdModel = ciqProdModel;
  217. }
  218. public Integer getToBeRestored() {
  219. return toBeRestored;
  220. }
  221. public void setToBeRestored(Integer toBeRestored) {
  222. this.toBeRestored = toBeRestored;
  223. }
  224. public Integer getExitRegionNumber() {
  225. return exitRegionNumber;
  226. }
  227. public void setExitRegionNumber(Integer exitRegionNumber) {
  228. this.exitRegionNumber = exitRegionNumber;
  229. }
  230. @Override
  231. public String toString() {
  232. return "QueryGoodsVo{" +
  233. "prodBarcode='" + prodBarcode + '\'' +
  234. ", sku='" + sku + '\'' +
  235. ", storeId=" + storeId +
  236. ", sellVolume=" + sellVolume +
  237. ", retailPrice=" + retailPrice +
  238. ", goodstaxes=" + goodstaxes +
  239. ", disCountedPrice=" + disCountedPrice +
  240. ", goodsNumber=" + goodsNumber +
  241. ", goodsSn='" + goodsSn + '\'' +
  242. ", name='" + name + '\'' +
  243. ", listPicUrl='" + listPicUrl + '\'' +
  244. ", storeMarketPrice=" + storeMarketPrice +
  245. ", storeRetailPrice=" + storeRetailPrice +
  246. ", stockNum=" + stockNum +
  247. ", storeName='" + storeName + '\'' +
  248. ", goodsRate=" + goodsRate +
  249. ", hsCode='" + hsCode + '\'' +
  250. ", legalUnit1Qty=" + legalUnit1Qty +
  251. ", legalUnit2Qty=" + legalUnit2Qty +
  252. ", ciqProdModel='" + ciqProdModel + '\'' +
  253. ", toBeRestored=" + toBeRestored +
  254. ", exitRegionNumber=" + exitRegionNumber +
  255. '}';
  256. }
  257. /**
  258. * 重写hashCode方法,用作排序
  259. */
  260. @Override
  261. public int hashCode() {
  262. String s = this.prodBarcode + this.sku + this.storeId;
  263. return s.hashCode();
  264. }
  265. /**
  266. * 重写equals
  267. * @param obj 需要对比的对象
  268. */
  269. @Override
  270. public boolean equals(Object obj) {
  271. if (Objects.isNull(obj)) {
  272. return false;
  273. }
  274. if (obj instanceof QueryGoodsVo) {
  275. return this.hashCode() == obj.hashCode();
  276. }
  277. return false;
  278. }
  279. }