zqy
5 天以前 b02beccf4567068cb47a3f1181a00039456c872d
zhang-content/src/main/java/com/ruoyi/domain/ZTravelBase.java
@@ -1,9 +1,15 @@
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 com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * <p>
@@ -14,138 +20,97 @@
 * @since 2023-03-14
 */
@TableName("z_travel_base")
@Data
public class ZTravelBase implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long id;
    /**
     * 对应费用表id
     */
    private String feeId;
    @Excel(name = "车次/航班")
    private String flight;
    @Excel(name = "出行方式")
    private String type;
    /**
     * 地点
     */
    @Excel(name = "地点")
    private String address;
    /**
     * 所有参加本次旅行的人物,用逗号隔开
     */
    @Excel(name = "人物")
    private String people;
    /**
     * 旅行记录的标题
     */
    @Excel(name = "标题")
    private String title;
    /**
     * 旅期
     */
    @Excel(name = "旅期")
    private String travelPeriod;
    /**
     * 所持的证件,多个用逗号隔开
     */
    @Excel(name = "所持证件")
    private String certificate;
    /**
     * 本次旅行总费用
     */
    @Excel(name = "总费用")
    private Double totalPrice;
    /**
     * 0:公费,1:自费
     */
    private Integer isSelf;
    @Excel(name = "公费或自费", readConverterExp = "0=公费,1=自费")
    private Integer self;
    /**
     * 备注信息
     */
    @Excel(name = "备注")
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    public Integer getId() {
        return id;
    }
    /**
     * 发生时间
     */
    @Excel(name = "时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date happenTime;
    public void setId(Integer id) {
        this.id = id;
    }
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date happenStartTime;
    public String getAddress() {
        return address;
    }
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date happenEndTime;
    public void setAddress(String address) {
        this.address = address;
    }
    /**
     * 电子文件路径
     */
    private String url;
    public String getPeople() {
        return people;
    }
    public void setPeople(String people) {
        this.people = people;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getTravelPeriod() {
        return travelPeriod;
    }
    public void setTravelPeriod(String travelPeriod) {
        this.travelPeriod = travelPeriod;
    }
    public String getCertificate() {
        return certificate;
    }
    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }
    public Double getTotalPrice() {
        return totalPrice;
    }
    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }
    public Integer getIsSelf() {
        return isSelf;
    }
    public void setIsSelf(Integer isSelf) {
        this.isSelf = isSelf;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Override
    public String toString() {
        return "ZTravelBase{" +
        "id=" + id +
        ", address=" + address +
        ", people=" + people +
        ", title=" + title +
        ", travelPeriod=" + travelPeriod +
        ", certificate=" + certificate +
        ", totalPrice=" + totalPrice +
        ", isSelf=" + isSelf +
        ", remark=" + remark +
        "}";
    }
}