package net.tooan.ynpay.order.agent.bus.bean;
import net.tooan.ynpay.order.agent.bus.bean.BusSite;
import net.tooan.ynpay.order.agent.bus.bean.BusStation;
import net.tooan.ynpay.third.mongodb.SimpleEntity;
import net.tooan.ynpay.third.mongodb.annotations.Embed;
import net.tooan.ynpay.third.mongodb.annotations.Entity;
/**
* Created with IntelliJ IDEA.
* User: Jing
* Date: 13-11-18
* Time: 下午1:53
*/
@Entity(name = "cache.BusClass")
public class BusClass extends SimpleEntity {
//客运站班次id
String classId;
//班次名
String name;
//班次编码
String code;
//班次发班日期
String date;
//班次发班时间
String time;
//班次总座位数
Integer seats;
//班次剩余座位数
Integer ticket;
//客运站信息
@Embed
BusStation station;
//车属公司信息
@Embed
BusCompany company;
//车辆等级
String level;
//车辆类型
String type;
//车牌号
String carNo;
//车辆类型
String carBing;
//高快标记
Boolean fast;
//加班标记
Boolean extra;
//起点
@Embed
BusSite origin;
//讫点
@Embed
BusSite site;
//可售状态
String status;
//里程
Float mileage;
//票价
Float price;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public BusSite getOrigin() {
return origin;
}
public void setOrigin(BusSite origin) {
this.origin = origin;
}
public BusSite getSite() {
return site;
}
public void setSite(BusSite site) {
this.site = site;
}
public BusStation getStation() {
return station;
}
public void setStation(BusStation station) {
this.station = station;
}
public Float getMileage() {
return mileage;
}
public void setMileage(Float mileage) {
this.mileage = mileage;
}
public Float getPrice() {
return price;
}
public void setPrice(Float price) {
this.price = price;
}
public Integer getSeats() {
return seats;
}
public void setSeats(Integer seats) {
this.seats = seats;
}
public Integer getTicket() {
return ticket;
}
public void setTicket(Integer ticket) {
this.ticket = ticket;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId;
}
}