OrderEntity.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. package com.kmall.admin.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import java.util.Date;
  6. import java.util.List;
  7. /**
  8. * @author Scott
  9. * @email
  10. * @date 2017-08-13 10:41:09
  11. */
  12. public class OrderEntity implements Serializable {
  13. private static final long serialVersionUID = 1L;
  14. //主键
  15. private Long id;
  16. //订单序列号
  17. private String orderSn;
  18. //会员Id
  19. private Integer userId;
  20. //订单状态
  21. //订单相关状态字段设计,采用单个字段表示全部的订单状态
  22. //1xx 表示订单取消和删除等状态 0订单创建成功等待付款, 101订单已取消, 102订单已删除
  23. //2xx 表示订单支付状态 201订单已付款,等待发货
  24. //3xx 表示订单物流相关状态 300订单已发货, 301用户确认收货
  25. //4xx 表示订单退换货相关的状态 401 没有发货,退款 402 已收货,退款退货
  26. private Integer orderStatus;
  27. //发货状态 商品配送情况;0未发货,1已发货,2已收货,4退货
  28. private Integer shippingStatus;
  29. //付款状态 支付状态;0未付款;1付款中;2已付款
  30. private Integer payStatus;
  31. //收货人
  32. private String consignee;
  33. //国家
  34. private String country;
  35. //省
  36. private String province;
  37. //地市
  38. private String city;
  39. //区县
  40. private String district;
  41. //收货地址
  42. private String address;
  43. //联系电话
  44. private String mobile;
  45. //补充说明
  46. private String postscript;
  47. //快递公司Id
  48. private Long shippingId;
  49. //快递公司简称(顺丰:SF)
  50. private String shippingCode;
  51. //快递公司名称
  52. private String shippingName;
  53. //快递单号
  54. private String shippingNo;
  55. // 配送员手机
  56. private String shippingMobile;
  57. //付款
  58. private String payId;
  59. //
  60. private String payName;
  61. //快递费用
  62. private BigDecimal shippingFee;
  63. //实际需要支付的金额
  64. private BigDecimal actualPrice;
  65. //
  66. private Integer integral;
  67. //
  68. private BigDecimal integralMoney;
  69. //订单总价
  70. private BigDecimal orderPrice;
  71. //商品总价
  72. private BigDecimal goodsPrice;
  73. //新增时间
  74. private Date addTime;
  75. //确认时间
  76. private Date confirmTime;
  77. //付款时间
  78. private Date payTime;
  79. //重商品额外费用
  80. private Integer freightPrice;
  81. //使用的优惠券id
  82. private Integer couponId;
  83. //
  84. private Integer parentId;
  85. //优惠价格
  86. private BigDecimal couponPrice;
  87. //
  88. private String callbackStatus;
  89. // 活动Id 团购
  90. private Integer activityId;
  91. //订单类型 1:普通订单 2:团购订单
  92. private String orderType;
  93. private Integer storeId;
  94. //
  95. private String userName;
  96. // 送达时间
  97. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  98. private Date deliveryDate;
  99. // 送到说明
  100. private String deliveryRemark;
  101. // 预计送达时间
  102. private Date predictTime;
  103. private String merchOrderSn;
  104. private String orderBizType;
  105. public String getOrderBizType() {
  106. return orderBizType;
  107. }
  108. public void setOrderBizType(String orderBizType) {
  109. this.orderBizType = orderBizType;
  110. }
  111. private List<OrderGoodsEntity> orderGoodsEntityList;
  112. public String getMerchOrderSn() {
  113. return merchOrderSn;
  114. }
  115. public void setMerchOrderSn(String merchOrderSn) {
  116. this.merchOrderSn = merchOrderSn;
  117. }
  118. public String getOrderType() {
  119. return orderType;
  120. }
  121. public void setOrderType(String orderType) {
  122. this.orderType = orderType;
  123. }
  124. /**
  125. * 设置:主键
  126. */
  127. public void setId(Long id) {
  128. this.id = id;
  129. }
  130. /**
  131. * 获取:主键
  132. */
  133. public Long getId() {
  134. return id;
  135. }
  136. public String getShippingCode() {
  137. return shippingCode;
  138. }
  139. public void setShippingCode(String shippingCode) {
  140. this.shippingCode = shippingCode;
  141. }
  142. /**
  143. * 设置:订单序列号
  144. */
  145. public void setOrderSn(String orderSn) {
  146. this.orderSn = orderSn;
  147. }
  148. /**
  149. * 获取:订单序列号
  150. */
  151. public String getOrderSn() {
  152. return orderSn;
  153. }
  154. /**
  155. * 设置:会员Id
  156. */
  157. public void setUserId(Integer userId) {
  158. this.userId = userId;
  159. }
  160. /**
  161. * 获取:会员Id
  162. */
  163. public Integer getUserId() {
  164. return userId;
  165. }
  166. /**
  167. * 设置:订单状态
  168. */
  169. public void setOrderStatus(Integer orderStatus) {
  170. this.orderStatus = orderStatus;
  171. }
  172. /**
  173. * 获取:订单状态
  174. */
  175. public Integer getOrderStatus() {
  176. return orderStatus;
  177. }
  178. /**
  179. * 设置:发货状态
  180. */
  181. public void setShippingStatus(Integer shippingStatus) {
  182. this.shippingStatus = shippingStatus;
  183. }
  184. /**
  185. * 获取:发货状态
  186. */
  187. public Integer getShippingStatus() {
  188. return shippingStatus;
  189. }
  190. /**
  191. * 设置:付款状态
  192. */
  193. public void setPayStatus(Integer payStatus) {
  194. this.payStatus = payStatus;
  195. }
  196. /**
  197. * 获取:付款状态
  198. */
  199. public Integer getPayStatus() {
  200. return payStatus;
  201. }
  202. /**
  203. * 设置:收货人
  204. */
  205. public void setConsignee(String consignee) {
  206. this.consignee = consignee;
  207. }
  208. /**
  209. * 获取:收货人
  210. */
  211. public String getConsignee() {
  212. return consignee;
  213. }
  214. /**
  215. * 设置:国家
  216. */
  217. public void setCountry(String country) {
  218. this.country = country;
  219. }
  220. /**
  221. * 获取:国家
  222. */
  223. public String getCountry() {
  224. return country;
  225. }
  226. /**
  227. * 设置:省
  228. */
  229. public void setProvince(String province) {
  230. this.province = province;
  231. }
  232. /**
  233. * 获取:省
  234. */
  235. public String getProvince() {
  236. return province;
  237. }
  238. /**
  239. * 设置:地市
  240. */
  241. public void setCity(String city) {
  242. this.city = city;
  243. }
  244. /**
  245. * 获取:地市
  246. */
  247. public String getCity() {
  248. return city;
  249. }
  250. /**
  251. * 设置:区县
  252. */
  253. public void setDistrict(String district) {
  254. this.district = district;
  255. }
  256. /**
  257. * 获取:区县
  258. */
  259. public String getDistrict() {
  260. return district;
  261. }
  262. public String getShippingNo() {
  263. return shippingNo;
  264. }
  265. public void setShippingNo(String shippingNo) {
  266. this.shippingNo = shippingNo;
  267. }
  268. /**
  269. * 设置:收货地址
  270. */
  271. public void setAddress(String address) {
  272. this.address = address;
  273. }
  274. /**
  275. * 获取:收货地址
  276. */
  277. public String getAddress() {
  278. return address;
  279. }
  280. /**
  281. * 设置:联系电话
  282. */
  283. public void setMobile(String mobile) {
  284. this.mobile = mobile;
  285. }
  286. /**
  287. * 获取:联系电话
  288. */
  289. public String getMobile() {
  290. return mobile;
  291. }
  292. /**
  293. * 设置:补充说明
  294. */
  295. public void setPostscript(String postscript) {
  296. this.postscript = postscript;
  297. }
  298. /**
  299. * 获取:补充说明
  300. */
  301. public String getPostscript() {
  302. return postscript;
  303. }
  304. /**
  305. * 设置:快递公司Id
  306. */
  307. public void setShippingId(Long shippingId) {
  308. this.shippingId = shippingId;
  309. }
  310. /**
  311. * 获取:快递公司Id
  312. */
  313. public Long getShippingId() {
  314. return shippingId;
  315. }
  316. /**
  317. * 设置:快递公司名称
  318. */
  319. public void setShippingName(String shippingName) {
  320. this.shippingName = shippingName;
  321. }
  322. /**
  323. * 获取:快递公司名称
  324. */
  325. public String getShippingName() {
  326. return shippingName;
  327. }
  328. /**
  329. * 设置:付款
  330. */
  331. public void setPayId(String payId) {
  332. this.payId = payId;
  333. }
  334. /**
  335. * 获取:付款
  336. */
  337. public String getPayId() {
  338. return payId;
  339. }
  340. /**
  341. * 设置:
  342. */
  343. public void setPayName(String payName) {
  344. this.payName = payName;
  345. }
  346. /**
  347. * 获取:
  348. */
  349. public String getPayName() {
  350. return payName;
  351. }
  352. /**
  353. * 设置:快递费用
  354. */
  355. public void setShippingFee(BigDecimal shippingFee) {
  356. this.shippingFee = shippingFee;
  357. }
  358. /**
  359. * 获取:快递费用
  360. */
  361. public BigDecimal getShippingFee() {
  362. return shippingFee;
  363. }
  364. /**
  365. * 设置:实际需要支付的金额
  366. */
  367. public void setActualPrice(BigDecimal actualPrice) {
  368. this.actualPrice = actualPrice;
  369. }
  370. /**
  371. * 获取:实际需要支付的金额
  372. */
  373. public BigDecimal getActualPrice() {
  374. return actualPrice;
  375. }
  376. /**
  377. * 设置:
  378. */
  379. public void setIntegral(Integer integral) {
  380. this.integral = integral;
  381. }
  382. /**
  383. * 获取:
  384. */
  385. public Integer getIntegral() {
  386. return integral;
  387. }
  388. /**
  389. * 设置:
  390. */
  391. public void setIntegralMoney(BigDecimal integralMoney) {
  392. this.integralMoney = integralMoney;
  393. }
  394. /**
  395. * 获取:
  396. */
  397. public BigDecimal getIntegralMoney() {
  398. return integralMoney;
  399. }
  400. /**
  401. * 设置:订单总价
  402. */
  403. public void setOrderPrice(BigDecimal orderPrice) {
  404. this.orderPrice = orderPrice;
  405. }
  406. /**
  407. * 获取:订单总价
  408. */
  409. public BigDecimal getOrderPrice() {
  410. return orderPrice;
  411. }
  412. /**
  413. * 设置:商品总价
  414. */
  415. public void setGoodsPrice(BigDecimal goodsPrice) {
  416. this.goodsPrice = goodsPrice;
  417. }
  418. /**
  419. * 获取:商品总价
  420. */
  421. public BigDecimal getGoodsPrice() {
  422. return goodsPrice;
  423. }
  424. /**
  425. * 设置:新增时间
  426. */
  427. public void setAddTime(Date addTime) {
  428. this.addTime = addTime;
  429. }
  430. /**
  431. * 获取:新增时间
  432. */
  433. public Date getAddTime() {
  434. return addTime;
  435. }
  436. /**
  437. * 设置:确认时间
  438. */
  439. public void setConfirmTime(Date confirmTime) {
  440. this.confirmTime = confirmTime;
  441. }
  442. /**
  443. * 获取:确认时间
  444. */
  445. public Date getConfirmTime() {
  446. return confirmTime;
  447. }
  448. /**
  449. * 设置:付款时间
  450. */
  451. public void setPayTime(Date payTime) {
  452. this.payTime = payTime;
  453. }
  454. /**
  455. * 获取:付款时间
  456. */
  457. public Date getPayTime() {
  458. return payTime;
  459. }
  460. /**
  461. * 设置:配送费用
  462. */
  463. public void setFreightPrice(Integer freightPrice) {
  464. this.freightPrice = freightPrice;
  465. }
  466. /**
  467. * 获取:配送费用
  468. */
  469. public Integer getFreightPrice() {
  470. return freightPrice;
  471. }
  472. /**
  473. * 设置:使用的优惠券id
  474. */
  475. public void setCouponId(Integer couponId) {
  476. this.couponId = couponId;
  477. }
  478. /**
  479. * 获取:使用的优惠券id
  480. */
  481. public Integer getCouponId() {
  482. return couponId;
  483. }
  484. /**
  485. * 设置:
  486. */
  487. public void setParentId(Integer parentId) {
  488. this.parentId = parentId;
  489. }
  490. /**
  491. * 获取:
  492. */
  493. public Integer getParentId() {
  494. return parentId;
  495. }
  496. /**
  497. * 设置:优惠价格
  498. */
  499. public void setCouponPrice(BigDecimal couponPrice) {
  500. this.couponPrice = couponPrice;
  501. }
  502. /**
  503. * 获取:优惠价格
  504. */
  505. public BigDecimal getCouponPrice() {
  506. return couponPrice;
  507. }
  508. /**
  509. * 设置:
  510. */
  511. public void setCallbackStatus(String callbackStatus) {
  512. this.callbackStatus = callbackStatus;
  513. }
  514. /**
  515. * 获取:
  516. */
  517. public String getCallbackStatus() {
  518. return callbackStatus;
  519. }
  520. public String getUserName() {
  521. return userName;
  522. }
  523. public void setUserName(String userName) {
  524. this.userName = userName;
  525. }
  526. public Integer getStoreId() {
  527. return storeId;
  528. }
  529. public void setStoreId(Integer storeId) {
  530. this.storeId = storeId;
  531. }
  532. public String getShippingMobile() {
  533. return shippingMobile;
  534. }
  535. public void setShippingMobile(String shippingMobile) {
  536. this.shippingMobile = shippingMobile;
  537. }
  538. public Integer getActivityId() {
  539. return activityId;
  540. }
  541. public void setActivityId(Integer activityId) {
  542. this.activityId = activityId;
  543. }
  544. public Date getDeliveryDate() {
  545. return deliveryDate;
  546. }
  547. public void setDeliveryDate(Date deliveryDate) {
  548. this.deliveryDate = deliveryDate;
  549. }
  550. public String getDeliveryRemark() {
  551. return deliveryRemark;
  552. }
  553. public void setDeliveryRemark(String deliveryRemark) {
  554. this.deliveryRemark = deliveryRemark;
  555. }
  556. public Date getPredictTime() {
  557. return predictTime;
  558. }
  559. public void setPredictTime(Date predictTime) {
  560. this.predictTime = predictTime;
  561. }
  562. public List<OrderGoodsEntity> getOrderGoodsEntityList() {
  563. return orderGoodsEntityList;
  564. }
  565. public void setOrderGoodsEntityList(List<OrderGoodsEntity> orderGoodsEntityList) {
  566. this.orderGoodsEntityList = orderGoodsEntityList;
  567. }
  568. }