From db9e568e346c07b574c5fbe59041889309f0642c Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期一, 29 五月 2023 22:09:30 +0800 Subject: [PATCH] 123 --- zhang-content/src/main/java/com/ruoyi/domain/ZTravelPrice.java | 147 +++++++++++++++++++++---------------------------- 1 files changed, 63 insertions(+), 84 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZTravelPrice.java b/zhang-content/src/main/java/com/ruoyi/domain/ZTravelPrice.java index 3702660..1c9fa31 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZTravelPrice.java +++ b/zhang-content/src/main/java/com/ruoyi/domain/ZTravelPrice.java @@ -1,10 +1,16 @@ package com.ruoyi.domain; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; + import java.io.Serializable; import java.time.LocalDateTime; +import java.util.Date; +import java.util.List; /** * <p> @@ -15,17 +21,14 @@ * @since 2023-03-14 */ @TableName("z_travel_price") +@Data public class ZTravelPrice implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private String id; - /** - * 鏈鏃呰鐨刬d - */ - private Integer travelId; /** * 椁愯垂 @@ -53,86 +56,62 @@ private Double shopping; /** - * 娑堣垂鏃ユ湡 + * 璧峰鏃ユ湡 */ - private LocalDateTime consumeDate; + @JsonFormat(pattern = "yyyy-MM-dd") + private Date startTime; + + /** + * 缁撴潫鏃ユ湡 + */ + @JsonFormat(pattern = "yyyy-MM-dd") + private Date endTime; + + /** + * 鍒涘缓鏃ユ湡 + */ + @JsonFormat(pattern = "yyyy-MM-dd") + private Date createTime; + + /** + * 鎬诲ぉ鏁� + */ + private Integer totalDay; + + /** + * 鏍囬 + */ + private String title; + + /** + * 鎬婚噾棰� + */ + private Double totalCost; + + /** + * 鎵�灞炵敤鎴穒d + */ + private Long myId; + + /** + * 璧峰鏃堕棿鎼滅储浼犲叆 + */ + @TableField(exist = false) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date start; + + /** + * 缁撴潫鏃堕棿鎼滅储浼犲叆 + */ + @TableField(exist = false) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date end; + + /** + * 璐圭敤璇︾粏璁板綍琛� + */ + @TableField(exist = false) + private List<ZTravelPriceDetail> detailList; - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getTravelId() { - return travelId; - } - - public void setTravelId(Integer travelId) { - this.travelId = travelId; - } - - public Double getEat() { - return eat; - } - - public void setEat(Double eat) { - this.eat = eat; - } - - public Double getStay() { - return stay; - } - - public void setStay(Double stay) { - this.stay = stay; - } - - public Double getTraffic() { - return traffic; - } - - public void setTraffic(Double traffic) { - this.traffic = traffic; - } - - public Double getEntrance() { - return entrance; - } - - public void setEntrance(Double entrance) { - this.entrance = entrance; - } - - public Double getShopping() { - return shopping; - } - - public void setShopping(Double shopping) { - this.shopping = shopping; - } - - public LocalDateTime getConsumeDate() { - return consumeDate; - } - - public void setConsumeDate(LocalDateTime consumeDate) { - this.consumeDate = consumeDate; - } - - @Override - public String toString() { - return "ZTravelPrice{" + - "id=" + id + - ", travelId=" + travelId + - ", eat=" + eat + - ", stay=" + stay + - ", traffic=" + traffic + - ", entrance=" + entrance + - ", shopping=" + shopping + - ", consumeDate=" + consumeDate + - "}"; - } } -- Gitblit v1.9.1