QueryGoodsVo.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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. /**
  99. * 总价格,含税价
  100. */
  101. private BigDecimal totalPrice;
  102. public String getProdBarcode() {
  103. return prodBarcode;
  104. }
  105. public void setProdBarcode(String prodBarcode) {
  106. this.prodBarcode = prodBarcode;
  107. }
  108. public String getSku() {
  109. return sku;
  110. }
  111. public void setSku(String sku) {
  112. this.sku = sku;
  113. }
  114. public Integer getStoreId() {
  115. return storeId;
  116. }
  117. public void setStoreId(Integer storeId) {
  118. this.storeId = storeId;
  119. }
  120. public Integer getSellVolume() {
  121. return sellVolume;
  122. }
  123. public void setSellVolume(Integer sellVolume) {
  124. this.sellVolume = sellVolume;
  125. }
  126. public BigDecimal getRetailPrice() {
  127. return retailPrice;
  128. }
  129. public void setRetailPrice(BigDecimal retailPrice) {
  130. this.retailPrice = retailPrice;
  131. }
  132. public BigDecimal getGoodsTaxes() {
  133. return goodsTaxes;
  134. }
  135. public void setGoodsTaxes(BigDecimal goodsTaxes) {
  136. this.goodsTaxes = goodsTaxes;
  137. }
  138. public BigDecimal getDisCountedPrice() {
  139. return disCountedPrice;
  140. }
  141. public void setDisCountedPrice(BigDecimal disCountedPrice) {
  142. this.disCountedPrice = disCountedPrice;
  143. }
  144. public Integer getGoodsNumber() {
  145. return goodsNumber;
  146. }
  147. public void setGoodsNumber(Integer goodsNumber) {
  148. this.goodsNumber = goodsNumber;
  149. }
  150. public String getGoodsSn() {
  151. return goodsSn;
  152. }
  153. public void setGoodsSn(String goodsSn) {
  154. this.goodsSn = goodsSn;
  155. }
  156. public String getName() {
  157. return name;
  158. }
  159. public void setName(String name) {
  160. this.name = name;
  161. }
  162. public String getListPicUrl() {
  163. return listPicUrl;
  164. }
  165. public void setListPicUrl(String listPicUrl) {
  166. this.listPicUrl = listPicUrl;
  167. }
  168. public BigDecimal getStoreMarketPrice() {
  169. return storeMarketPrice;
  170. }
  171. public void setStoreMarketPrice(BigDecimal storeMarketPrice) {
  172. this.storeMarketPrice = storeMarketPrice;
  173. }
  174. public BigDecimal getStoreRetailPrice() {
  175. return storeRetailPrice;
  176. }
  177. public void setStoreRetailPrice(BigDecimal storeRetailPrice) {
  178. this.storeRetailPrice = storeRetailPrice;
  179. }
  180. public Integer getStockNum() {
  181. return stockNum;
  182. }
  183. public void setStockNum(Integer stockNum) {
  184. this.stockNum = stockNum;
  185. }
  186. public String getStoreName() {
  187. return storeName;
  188. }
  189. public void setStoreName(String storeName) {
  190. this.storeName = storeName;
  191. }
  192. public BigDecimal getGoodsRate() {
  193. return goodsRate;
  194. }
  195. public void setGoodsRate(BigDecimal goodsRate) {
  196. this.goodsRate = goodsRate;
  197. }
  198. public String getHsCode() {
  199. return hsCode;
  200. }
  201. public void setHsCode(String hsCode) {
  202. this.hsCode = hsCode;
  203. }
  204. public BigDecimal getLegalUnit1Qty() {
  205. return legalUnit1Qty;
  206. }
  207. public void setLegalUnit1Qty(BigDecimal legalUnit1Qty) {
  208. this.legalUnit1Qty = legalUnit1Qty;
  209. }
  210. public BigDecimal getLegalUnit2Qty() {
  211. return legalUnit2Qty;
  212. }
  213. public void setLegalUnit2Qty(BigDecimal legalUnit2Qty) {
  214. this.legalUnit2Qty = legalUnit2Qty;
  215. }
  216. public String getCiqProdModel() {
  217. return ciqProdModel;
  218. }
  219. public void setCiqProdModel(String ciqProdModel) {
  220. this.ciqProdModel = ciqProdModel;
  221. }
  222. public Integer getToBeRestored() {
  223. return toBeRestored;
  224. }
  225. public void setToBeRestored(Integer toBeRestored) {
  226. this.toBeRestored = toBeRestored;
  227. }
  228. public Integer getExitRegionNumber() {
  229. return exitRegionNumber;
  230. }
  231. public void setExitRegionNumber(Integer exitRegionNumber) {
  232. this.exitRegionNumber = exitRegionNumber;
  233. }
  234. public BigDecimal getTotalPrice() {
  235. return totalPrice;
  236. }
  237. public void setTotalPrice(BigDecimal totalPrice) {
  238. this.totalPrice = totalPrice;
  239. }
  240. @Override
  241. public String toString() {
  242. return "QueryGoodsVo{" +
  243. "prodBarcode='" + prodBarcode + '\'' +
  244. ", sku='" + sku + '\'' +
  245. ", storeId=" + storeId +
  246. ", sellVolume=" + sellVolume +
  247. ", retailPrice=" + retailPrice +
  248. ", goodsTaxes=" + goodsTaxes +
  249. ", disCountedPrice=" + disCountedPrice +
  250. ", goodsNumber=" + goodsNumber +
  251. ", goodsSn='" + goodsSn + '\'' +
  252. ", name='" + name + '\'' +
  253. ", listPicUrl='" + listPicUrl + '\'' +
  254. ", storeMarketPrice=" + storeMarketPrice +
  255. ", storeRetailPrice=" + storeRetailPrice +
  256. ", stockNum=" + stockNum +
  257. ", storeName='" + storeName + '\'' +
  258. ", goodsRate=" + goodsRate +
  259. ", hsCode='" + hsCode + '\'' +
  260. ", legalUnit1Qty=" + legalUnit1Qty +
  261. ", legalUnit2Qty=" + legalUnit2Qty +
  262. ", ciqProdModel='" + ciqProdModel + '\'' +
  263. ", toBeRestored=" + toBeRestored +
  264. ", exitRegionNumber=" + exitRegionNumber +
  265. ", totalPrice=" + totalPrice +
  266. '}';
  267. }
  268. /**
  269. * 重写hashCode方法,用作排序
  270. */
  271. @Override
  272. public int hashCode() {
  273. String s = this.prodBarcode + this.sku + this.storeId;
  274. return s.hashCode();
  275. }
  276. /**
  277. * 重写equals
  278. * @param obj 需要对比的对象
  279. */
  280. @Override
  281. public boolean equals(Object obj) {
  282. if (Objects.isNull(obj)) {
  283. return false;
  284. }
  285. if (obj instanceof QueryGoodsVo) {
  286. return this.hashCode() == obj.hashCode();
  287. }
  288. return false;
  289. }
  290. }