OrderEntity.java 14 KB

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