package com.cn.domain; // 定义类的包名

import java.sql.Timestamp; // 导入Timestamp类，用于处理日期和时间

/**
 * 订票信息实体类
 * @ClassName: Prep
 * @Description: 订票信息实体类
 * @author: ljy
 * @date: 2019年9月14日 下午5:12:42
 */
public class Prep {
    // 序号
    private Integer prepId;
    // 车次id
    private Integer trainId;
    // 会员信息ID
    private Integer pmemberId;
    // 起始站
    private String startStation;
    // 终点站
    private String endStation;
    // 火车车次
    private String trainNumber;
    // 开车时间
    private String startTime;
    // 到站时间
    private String endTime;
    // 车票价格
    private Integer price;
    // 付款情况，true为已付款，false为未付款
    private boolean way;
    // 订票时间
    private Timestamp booktime;

    // 构造函数，包含所有属性
    public Prep(Integer prepId, Integer trainId, Integer pmemberId, String startStation, String endStation,
            String trainNumber, String startTime, String endTime, Integer price, boolean way, Timestamp booktime) {
        this.prepId = prepId;
        this.trainId = trainId;
        this.pmemberId = pmemberId;
        this.startStation = startStation;
        this.endStation = endStation;
        this.trainNumber = trainNumber;
        this.startTime = startTime;
        this.endTime = endTime;
        this.price = price;
        this.way = way;
        this.booktime = booktime;
    }

    // 无参构造函数
    public Prep() {
    }

    // 获取序号
    public Integer getPrepId() {
        return prepId;
    }

    // 设置序号
    public void setPrepId(Integer prepId) {
        this.prepId = prepId;
    }

    // 获取车次id
    public Integer getTrainId() {
        return trainId;
    }

    // 设置车次id
    public void setTrainId(Integer trainId) {
        this.trainId = trainId;
    }

    // 获取会员信息ID
    public Integer getPmemberId() {
        return pmemberId;
    }

    // 设置会员信息ID
    public void setPmemberId(Integer pmemberId) {
        this.pmemberId = pmemberId;
    }

    // 获取起始站
    public String getStartStation() {
        return startStation;
    }

    // 设置起始站
    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    // 获取终点站
    public String getEndStation() {
        return endStation;
    }

    // 设置终点站
    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }

    // 获取火车车次
    public String getTrainNumber() {
        return trainNumber;
    }

    // 设置火车车次
    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    // 获取开车时间
    public String getStartTime() {
        return startTime;
    }

    // 设置开车时间
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    // 获取到站时间
    public String getEndTime() {
        return endTime;
    }

    // 设置到站时间
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    // 获取车票价格
    public Integer getPrice() {
        return price;
    }

    // 设置车票价格
    public void setPrice(Integer price) {
        this.price = price;
    }

    // 检查付款情况
    public boolean isWay() {
        return way;
    }

    // 设置付款情况
    public void setWay(boolean way) {
        this.way = way;
    }

    // 获取订票时间
    public Timestamp getBooktime() {
        return booktime;
    }

    // 设置订票时间
    public void setBooktime(Timestamp booktime) {
        this.booktime = booktime;
    }

    // 返回Prep对象的字符串表示形式
    @Override
    public String toString() {
        return "Prep [prepId=" + prepId + ", trainId=" + trainId + ", pmemberId=" + pmemberId + ", startStation="
                + startStation + ", endStation=" + endStation + ", trainNumber=" + trainNumber + ", startTime="
                + startTime + ", endTime=" + endTime + ", price=" + price + ", way=" + way + ", booktime=" + booktime
                + "]";
    }
}
