TaxiOrder.java 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. package com.ruoyi.system.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.baomidou.mybatisplus.annotation.IdType;
  7. import com.baomidou.mybatisplus.annotation.TableId;
  8. import org.apache.commons.lang3.builder.ToStringBuilder;
  9. import org.apache.commons.lang3.builder.ToStringStyle;
  10. import com.ruoyi.common.annotation.Excel;
  11. import lombok.Data;
  12. import lombok.EqualsAndHashCode;
  13. import javax.persistence.GeneratedValue;
  14. import com.ruoyi.common.core.domain.BaseEntity;
  15. /**
  16. * TaxiOrder对象 taxi_order
  17. *
  18. * @author ruoyi
  19. * @date 2024-01-26
  20. */
  21. @Data
  22. @TableName(value = "taxi_order")
  23. @EqualsAndHashCode(callSuper = false)
  24. public class TaxiOrder
  25. {
  26. private static final long serialVersionUID = 1L;
  27. @TableId(type = IdType.AUTO)
  28. @GeneratedValue
  29. /** id */
  30. private Long id;
  31. /** 订单id */
  32. @Excel(name = "订单id")
  33. private String ddId;
  34. /** 用户id */
  35. private Long userId;
  36. /** 司机id */
  37. private Long driverId;
  38. /** 上车地址 */
  39. @Excel(name = "上车地址")
  40. private String boardingAddress;
  41. /** 上车经度 */
  42. private BigDecimal intoLongitude;
  43. /** 上车纬度 */
  44. private BigDecimal intoLatitude;
  45. /** 下车地址 */
  46. @Excel(name = "下车地址")
  47. private String downAddress;
  48. /** 下车经度 */
  49. private BigDecimal downLongitude;
  50. /** 下车维度 */
  51. private BigDecimal downLatitude;
  52. /** 路程距离 */
  53. @Excel(name = "路程距离")
  54. private Long distance;
  55. /** 订单状态 */
  56. @Excel(name = "订单状态")
  57. private String state;
  58. /** 订单类型 */
  59. @Excel(name = "订单类型")
  60. private String taxiType;
  61. /** 发布者id */
  62. private Long releaseId;
  63. /** 订单时间 */
  64. @JsonFormat(pattern = "yyyy-MM-dd")
  65. @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
  66. private Date orderTime;
  67. /** 登车时间 */
  68. private String boardingTime;
  69. /** 下车时间 */
  70. private String alightingTime;
  71. /** 预约时间 */
  72. private String appointmentTime;
  73. /** 路程车费 */
  74. private BigDecimal fare;
  75. /** 高速公路费用 */
  76. private BigDecimal highwayCosts;
  77. /** 订单实制金额 */
  78. @Excel(name = "订单实制金额")
  79. private BigDecimal amount;
  80. /** 路上预计用时 */
  81. private String estimatedDuration;
  82. /** 备注 */
  83. private String notes;
  84. /** 优惠金额 */
  85. private BigDecimal coupon;
  86. /** 附近订单距离 */
  87. @Excel(name = "附近订单距离")
  88. private transient Double juli;
  89. public void setId(Long id)
  90. {
  91. this.id = id;
  92. }
  93. public Long getId()
  94. {
  95. return id;
  96. }
  97. public void setDdId(String ddId)
  98. {
  99. this.ddId = ddId;
  100. }
  101. public String getDdId()
  102. {
  103. return ddId;
  104. }
  105. public void setUserId(Long userId)
  106. {
  107. this.userId = userId;
  108. }
  109. public Long getUserId()
  110. {
  111. return userId;
  112. }
  113. public void setDriverId(Long driverId)
  114. {
  115. this.driverId = driverId;
  116. }
  117. public Long getDriverId()
  118. {
  119. return driverId;
  120. }
  121. public void setBoardingAddress(String boardingAddress)
  122. {
  123. this.boardingAddress = boardingAddress;
  124. }
  125. public String getBoardingAddress()
  126. {
  127. return boardingAddress;
  128. }
  129. public void setIntoLongitude(BigDecimal intoLongitude)
  130. {
  131. this.intoLongitude = intoLongitude;
  132. }
  133. public BigDecimal getIntoLongitude()
  134. {
  135. return intoLongitude;
  136. }
  137. public void setIntoLatitude(BigDecimal intoLatitude)
  138. {
  139. this.intoLatitude = intoLatitude;
  140. }
  141. public BigDecimal getIntoLatitude()
  142. {
  143. return intoLatitude;
  144. }
  145. public void setDownAddress(String downAddress)
  146. {
  147. this.downAddress = downAddress;
  148. }
  149. public String getDownAddress()
  150. {
  151. return downAddress;
  152. }
  153. public void setDownLongitude(BigDecimal downLongitude)
  154. {
  155. this.downLongitude = downLongitude;
  156. }
  157. public BigDecimal getDownLongitude()
  158. {
  159. return downLongitude;
  160. }
  161. public void setDownLatitude(BigDecimal downLatitude)
  162. {
  163. this.downLatitude = downLatitude;
  164. }
  165. public BigDecimal getDownLatitude()
  166. {
  167. return downLatitude;
  168. }
  169. public void setDistance(Long distance)
  170. {
  171. this.distance = distance;
  172. }
  173. public Long getDistance()
  174. {
  175. return distance;
  176. }
  177. public void setState(String state)
  178. {
  179. this.state = state;
  180. }
  181. public String getState()
  182. {
  183. return state;
  184. }
  185. public void setTaxiType(String taxiType)
  186. {
  187. this.taxiType = taxiType;
  188. }
  189. public String getTaxiType()
  190. {
  191. return taxiType;
  192. }
  193. public void setReleaseId(Long releaseId)
  194. {
  195. this.releaseId = releaseId;
  196. }
  197. public Long getReleaseId()
  198. {
  199. return releaseId;
  200. }
  201. public void setOrderTime(Date orderTime)
  202. {
  203. this.orderTime = orderTime;
  204. }
  205. public Date getOrderTime()
  206. {
  207. return orderTime;
  208. }
  209. public void setBoardingTime(String boardingTime)
  210. {
  211. this.boardingTime = boardingTime;
  212. }
  213. public String getBoardingTime()
  214. {
  215. return boardingTime;
  216. }
  217. public void setAlightingTime(String alightingTime)
  218. {
  219. this.alightingTime = alightingTime;
  220. }
  221. public String getAlightingTime()
  222. {
  223. return alightingTime;
  224. }
  225. public void setAppointmentTime(String appointmentTime)
  226. {
  227. this.appointmentTime = appointmentTime;
  228. }
  229. public String getAppointmentTime()
  230. {
  231. return appointmentTime;
  232. }
  233. public void setFare(BigDecimal fare)
  234. {
  235. this.fare = fare;
  236. }
  237. public BigDecimal getFare()
  238. {
  239. return fare;
  240. }
  241. public void setHighwayCosts(BigDecimal highwayCosts)
  242. {
  243. this.highwayCosts = highwayCosts;
  244. }
  245. public BigDecimal getHighwayCosts()
  246. {
  247. return highwayCosts;
  248. }
  249. public void setAmount(BigDecimal amount)
  250. {
  251. this.amount = amount;
  252. }
  253. public BigDecimal getAmount()
  254. {
  255. return amount;
  256. }
  257. public void setEstimatedDuration(String estimatedDuration)
  258. {
  259. this.estimatedDuration = estimatedDuration;
  260. }
  261. public String getEstimatedDuration()
  262. {
  263. return estimatedDuration;
  264. }
  265. public void setNotes(String notes)
  266. {
  267. this.notes = notes;
  268. }
  269. public String getNotes()
  270. {
  271. return notes;
  272. }
  273. public void setCoupon(BigDecimal coupon)
  274. {
  275. this.coupon = coupon;
  276. }
  277. public BigDecimal getCoupon()
  278. {
  279. return coupon;
  280. }
  281. @Override
  282. public String toString() {
  283. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  284. .append("id", getId())
  285. .append("ddId", getDdId())
  286. .append("userId", getUserId())
  287. .append("driverId", getDriverId())
  288. .append("boardingAddress", getBoardingAddress())
  289. .append("intoLongitude", getIntoLongitude())
  290. .append("intoLatitude", getIntoLatitude())
  291. .append("downAddress", getDownAddress())
  292. .append("downLongitude", getDownLongitude())
  293. .append("downLatitude", getDownLatitude())
  294. .append("distance", getDistance())
  295. .append("state", getState())
  296. .append("taxiType", getTaxiType())
  297. .append("releaseId", getReleaseId())
  298. .append("orderTime", getOrderTime())
  299. .append("boardingTime", getBoardingTime())
  300. .append("alightingTime", getAlightingTime())
  301. .append("appointmentTime", getAppointmentTime())
  302. .append("fare", getFare())
  303. .append("highwayCosts", getHighwayCosts())
  304. .append("amount", getAmount())
  305. .append("estimatedDuration", getEstimatedDuration())
  306. .append("notes", getNotes())
  307. .append("coupon", getCoupon())
  308. .toString();
  309. }
  310. }