OrderDO.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package com.sf.entity;
  18. import com.baomidou.mybatisplus.annotation.TableName;
  19. import lombok.AllArgsConstructor;
  20. import lombok.Builder;
  21. import lombok.Data;
  22. import lombok.NoArgsConstructor;
  23. import org.opengoofy.index12306.framework.starter.database.base.BaseDO;
  24. import java.util.Date;
  25. /**
  26. * 订单数据库实体
  27. * 公众号:马丁玩编程,回复:加群,添加马哥微信(备注:12306)获取项目资料
  28. */
  29. @Data
  30. @TableName("t_order")
  31. @NoArgsConstructor
  32. @AllArgsConstructor
  33. @Builder
  34. public class OrderDO extends BaseDO {
  35. /**
  36. * id
  37. */
  38. private Long id;
  39. /**
  40. * 订单号
  41. */
  42. private String orderSn;
  43. /**
  44. * 用户id
  45. */
  46. private String userId;
  47. /**
  48. * 用户名
  49. */
  50. private String username;
  51. /**
  52. * 列车id
  53. */
  54. private Long trainId;
  55. /**
  56. * 列车车次
  57. */
  58. private String trainNumber;
  59. /**
  60. * 出发站点
  61. */
  62. private String departure;
  63. /**
  64. * 到达站点
  65. */
  66. private String arrival;
  67. /**
  68. * 订单来源
  69. */
  70. private Integer source;
  71. /**
  72. * 订单状态
  73. */
  74. private Integer status;
  75. /**
  76. * 下单时间
  77. */
  78. private Date orderTime;
  79. /**
  80. * 支付方式
  81. */
  82. private Integer payType;
  83. /**
  84. * 支付时间
  85. */
  86. private Date payTime;
  87. /**
  88. * 乘车日期
  89. */
  90. private Date ridingDate;
  91. /**
  92. * 出发时间
  93. */
  94. private Date departureTime;
  95. /**
  96. * 出发时间
  97. */
  98. private Date arrivalTime;
  99. }