OrderEntity.java 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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. private String isPaymentSend;
  106. private String isEleOrderSend;
  107. private String isCustomsSend;
  108. public String getIsPaymentSend() {
  109. return isPaymentSend;
  110. }
  111. public void setIsPaymentSend(String isPaymentSend) {
  112. this.isPaymentSend = isPaymentSend;
  113. }
  114. public String getIsEleOrderSend() {
  115. return isEleOrderSend;
  116. }
  117. public void setIsEleOrderSend(String isEleOrderSend) {
  118. this.isEleOrderSend = isEleOrderSend;
  119. }
  120. public String getIsCustomsSend() {
  121. return isCustomsSend;
  122. }
  123. public void setIsCustomsSend(String isCustomsSend) {
  124. this.isCustomsSend = isCustomsSend;
  125. }
  126. public String getOrderBizType() {
  127. return orderBizType;
  128. }
  129. public void setOrderBizType(String orderBizType) {
  130. this.orderBizType = orderBizType;
  131. }
  132. private List<OrderGoodsEntity> orderGoodsEntityList;
  133. public String getMerchOrderSn() {
  134. return merchOrderSn;
  135. }
  136. public void setMerchOrderSn(String merchOrderSn) {
  137. this.merchOrderSn = merchOrderSn;
  138. }
  139. public String getOrderType() {
  140. return orderType;
  141. }
  142. public void setOrderType(String orderType) {
  143. this.orderType = orderType;
  144. }
  145. /**
  146. * 设置:主键
  147. */
  148. public void setId(Long id) {
  149. this.id = id;
  150. }
  151. /**
  152. * 获取:主键
  153. */
  154. public Long getId() {
  155. return id;
  156. }
  157. public String getShippingCode() {
  158. return shippingCode;
  159. }
  160. public void setShippingCode(String shippingCode) {
  161. this.shippingCode = shippingCode;
  162. }
  163. /**
  164. * 设置:订单序列号
  165. */
  166. public void setOrderSn(String orderSn) {
  167. this.orderSn = orderSn;
  168. }
  169. /**
  170. * 获取:订单序列号
  171. */
  172. public String getOrderSn() {
  173. return orderSn;
  174. }
  175. /**
  176. * 设置:会员Id
  177. */
  178. public void setUserId(Integer userId) {
  179. this.userId = userId;
  180. }
  181. /**
  182. * 获取:会员Id
  183. */
  184. public Integer getUserId() {
  185. return userId;
  186. }
  187. /**
  188. * 设置:订单状态
  189. */
  190. public void setOrderStatus(Integer orderStatus) {
  191. this.orderStatus = orderStatus;
  192. }
  193. /**
  194. * 获取:订单状态
  195. */
  196. public Integer getOrderStatus() {
  197. return orderStatus;
  198. }
  199. /**
  200. * 设置:发货状态
  201. */
  202. public void setShippingStatus(Integer shippingStatus) {
  203. this.shippingStatus = shippingStatus;
  204. }
  205. /**
  206. * 获取:发货状态
  207. */
  208. public Integer getShippingStatus() {
  209. return shippingStatus;
  210. }
  211. /**
  212. * 设置:付款状态
  213. */
  214. public void setPayStatus(Integer payStatus) {
  215. this.payStatus = payStatus;
  216. }
  217. /**
  218. * 获取:付款状态
  219. */
  220. public Integer getPayStatus() {
  221. return payStatus;
  222. }
  223. /**
  224. * 设置:收货人
  225. */
  226. public void setConsignee(String consignee) {
  227. this.consignee = consignee;
  228. }
  229. /**
  230. * 获取:收货人
  231. */
  232. public String getConsignee() {
  233. return consignee;
  234. }
  235. /**
  236. * 设置:国家
  237. */
  238. public void setCountry(String country) {
  239. this.country = country;
  240. }
  241. /**
  242. * 获取:国家
  243. */
  244. public String getCountry() {
  245. return country;
  246. }
  247. /**
  248. * 设置:省
  249. */
  250. public void setProvince(String province) {
  251. this.province = province;
  252. }
  253. /**
  254. * 获取:省
  255. */
  256. public String getProvince() {
  257. return province;
  258. }
  259. /**
  260. * 设置:地市
  261. */
  262. public void setCity(String city) {
  263. this.city = city;
  264. }
  265. /**
  266. * 获取:地市
  267. */
  268. public String getCity() {
  269. return city;
  270. }
  271. /**
  272. * 设置:区县
  273. */
  274. public void setDistrict(String district) {
  275. this.district = district;
  276. }
  277. /**
  278. * 获取:区县
  279. */
  280. public String getDistrict() {
  281. return district;
  282. }
  283. public String getShippingNo() {
  284. return shippingNo;
  285. }
  286. public void setShippingNo(String shippingNo) {
  287. this.shippingNo = shippingNo;
  288. }
  289. /**
  290. * 设置:收货地址
  291. */
  292. public void setAddress(String address) {
  293. this.address = address;
  294. }
  295. /**
  296. * 获取:收货地址
  297. */
  298. public String getAddress() {
  299. return address;
  300. }
  301. /**
  302. * 设置:联系电话
  303. */
  304. public void setMobile(String mobile) {
  305. this.mobile = mobile;
  306. }
  307. /**
  308. * 获取:联系电话
  309. */
  310. public String getMobile() {
  311. return mobile;
  312. }
  313. /**
  314. * 设置:补充说明
  315. */
  316. public void setPostscript(String postscript) {
  317. this.postscript = postscript;
  318. }
  319. /**
  320. * 获取:补充说明
  321. */
  322. public String getPostscript() {
  323. return postscript;
  324. }
  325. /**
  326. * 设置:快递公司Id
  327. */
  328. public void setShippingId(Long shippingId) {
  329. this.shippingId = shippingId;
  330. }
  331. /**
  332. * 获取:快递公司Id
  333. */
  334. public Long getShippingId() {
  335. return shippingId;
  336. }
  337. /**
  338. * 设置:快递公司名称
  339. */
  340. public void setShippingName(String shippingName) {
  341. this.shippingName = shippingName;
  342. }
  343. /**
  344. * 获取:快递公司名称
  345. */
  346. public String getShippingName() {
  347. return shippingName;
  348. }
  349. /**
  350. * 设置:付款
  351. */
  352. public void setPayId(String payId) {
  353. this.payId = payId;
  354. }
  355. /**
  356. * 获取:付款
  357. */
  358. public String getPayId() {
  359. return payId;
  360. }
  361. /**
  362. * 设置:
  363. */
  364. public void setPayName(String payName) {
  365. this.payName = payName;
  366. }
  367. /**
  368. * 获取:
  369. */
  370. public String getPayName() {
  371. return payName;
  372. }
  373. /**
  374. * 设置:快递费用
  375. */
  376. public void setShippingFee(BigDecimal shippingFee) {
  377. this.shippingFee = shippingFee;
  378. }
  379. /**
  380. * 获取:快递费用
  381. */
  382. public BigDecimal getShippingFee() {
  383. return shippingFee;
  384. }
  385. /**
  386. * 设置:实际需要支付的金额
  387. */
  388. public void setActualPrice(BigDecimal actualPrice) {
  389. this.actualPrice = actualPrice;
  390. }
  391. /**
  392. * 获取:实际需要支付的金额
  393. */
  394. public BigDecimal getActualPrice() {
  395. return actualPrice;
  396. }
  397. /**
  398. * 设置:
  399. */
  400. public void setIntegral(Integer integral) {
  401. this.integral = integral;
  402. }
  403. /**
  404. * 获取:
  405. */
  406. public Integer getIntegral() {
  407. return integral;
  408. }
  409. /**
  410. * 设置:
  411. */
  412. public void setIntegralMoney(BigDecimal integralMoney) {
  413. this.integralMoney = integralMoney;
  414. }
  415. /**
  416. * 获取:
  417. */
  418. public BigDecimal getIntegralMoney() {
  419. return integralMoney;
  420. }
  421. /**
  422. * 设置:订单总价
  423. */
  424. public void setOrderPrice(BigDecimal orderPrice) {
  425. this.orderPrice = orderPrice;
  426. }
  427. /**
  428. * 获取:订单总价
  429. */
  430. public BigDecimal getOrderPrice() {
  431. return orderPrice;
  432. }
  433. /**
  434. * 设置:商品总价
  435. */
  436. public void setGoodsPrice(BigDecimal goodsPrice) {
  437. this.goodsPrice = goodsPrice;
  438. }
  439. /**
  440. * 获取:商品总价
  441. */
  442. public BigDecimal getGoodsPrice() {
  443. return goodsPrice;
  444. }
  445. /**
  446. * 设置:新增时间
  447. */
  448. public void setAddTime(Date addTime) {
  449. this.addTime = addTime;
  450. }
  451. /**
  452. * 获取:新增时间
  453. */
  454. public Date getAddTime() {
  455. return addTime;
  456. }
  457. /**
  458. * 设置:确认时间
  459. */
  460. public void setConfirmTime(Date confirmTime) {
  461. this.confirmTime = confirmTime;
  462. }
  463. /**
  464. * 获取:确认时间
  465. */
  466. public Date getConfirmTime() {
  467. return confirmTime;
  468. }
  469. /**
  470. * 设置:付款时间
  471. */
  472. public void setPayTime(Date payTime) {
  473. this.payTime = payTime;
  474. }
  475. /**
  476. * 获取:付款时间
  477. */
  478. public Date getPayTime() {
  479. return payTime;
  480. }
  481. /**
  482. * 设置:配送费用
  483. */
  484. public void setFreightPrice(Integer freightPrice) {
  485. this.freightPrice = freightPrice;
  486. }
  487. /**
  488. * 获取:配送费用
  489. */
  490. public Integer getFreightPrice() {
  491. return freightPrice;
  492. }
  493. /**
  494. * 设置:使用的优惠券id
  495. */
  496. public void setCouponId(Integer couponId) {
  497. this.couponId = couponId;
  498. }
  499. /**
  500. * 获取:使用的优惠券id
  501. */
  502. public Integer getCouponId() {
  503. return couponId;
  504. }
  505. /**
  506. * 设置:
  507. */
  508. public void setParentId(Integer parentId) {
  509. this.parentId = parentId;
  510. }
  511. /**
  512. * 获取:
  513. */
  514. public Integer getParentId() {
  515. return parentId;
  516. }
  517. /**
  518. * 设置:优惠价格
  519. */
  520. public void setCouponPrice(BigDecimal couponPrice) {
  521. this.couponPrice = couponPrice;
  522. }
  523. /**
  524. * 获取:优惠价格
  525. */
  526. public BigDecimal getCouponPrice() {
  527. return couponPrice;
  528. }
  529. /**
  530. * 设置:
  531. */
  532. public void setCallbackStatus(String callbackStatus) {
  533. this.callbackStatus = callbackStatus;
  534. }
  535. /**
  536. * 获取:
  537. */
  538. public String getCallbackStatus() {
  539. return callbackStatus;
  540. }
  541. public String getUserName() {
  542. return userName;
  543. }
  544. public void setUserName(String userName) {
  545. this.userName = userName;
  546. }
  547. public Integer getStoreId() {
  548. return storeId;
  549. }
  550. public void setStoreId(Integer storeId) {
  551. this.storeId = storeId;
  552. }
  553. public String getShippingMobile() {
  554. return shippingMobile;
  555. }
  556. public void setShippingMobile(String shippingMobile) {
  557. this.shippingMobile = shippingMobile;
  558. }
  559. public Integer getActivityId() {
  560. return activityId;
  561. }
  562. public void setActivityId(Integer activityId) {
  563. this.activityId = activityId;
  564. }
  565. public Date getDeliveryDate() {
  566. return deliveryDate;
  567. }
  568. public void setDeliveryDate(Date deliveryDate) {
  569. this.deliveryDate = deliveryDate;
  570. }
  571. public String getDeliveryRemark() {
  572. return deliveryRemark;
  573. }
  574. public void setDeliveryRemark(String deliveryRemark) {
  575. this.deliveryRemark = deliveryRemark;
  576. }
  577. public Date getPredictTime() {
  578. return predictTime;
  579. }
  580. public void setPredictTime(Date predictTime) {
  581. this.predictTime = predictTime;
  582. }
  583. public List<OrderGoodsEntity> getOrderGoodsEntityList() {
  584. return orderGoodsEntityList;
  585. }
  586. public void setOrderGoodsEntityList(List<OrderGoodsEntity> orderGoodsEntityList) {
  587. this.orderGoodsEntityList = orderGoodsEntityList;
  588. }
  589. }