package com.stylefeng.guns.modular.taxi.warpper;
|
|
import com.stylefeng.guns.modular.taxi.model.OrderTaxi;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
@ApiModel("出租车订单")
|
public class OrderTaxiWarpper {
|
@ApiModelProperty(dataType = "int", required = false, value = "扫码下单时传此参数")
|
private Integer driverId;
|
@ApiModelProperty(dataType = "double", required = true, value = "下单地点经度")
|
private Double placementLon;
|
@ApiModelProperty(dataType = "double", required = true, value = "下单地点纬度")
|
private Double placementLat;
|
@ApiModelProperty(dataType = "String", required = true, value = "下单详细地址")
|
private String placementAddress;
|
@ApiModelProperty(dataType = "double", required = true, value = "起点经度")
|
private Double startLon;
|
@ApiModelProperty(dataType = "double", required = true, value = "起点纬度")
|
private Double startLat;
|
@ApiModelProperty(dataType = "String", required = true, value = "起点详细地址")
|
private String startAddress;
|
@ApiModelProperty(dataType = "double", required = true, value = "终点经度")
|
private Double endLon;
|
@ApiModelProperty(dataType = "double", required = true, value = "终点纬度")
|
private Double endLat;
|
@ApiModelProperty(dataType = "String", required = true, value = "终点详细地址")
|
private String endAddress;
|
@ApiModelProperty(dataType = "double", required = true, value = "消费金额,没有消费传0")
|
private Double tipMoney;
|
@ApiModelProperty(dataType = "int", required = true, value = "是否是代下单(0:否,1:是)")
|
private Integer substitute;
|
@ApiModelProperty(dataType = "String", required = false, value = "乘车人姓名,substitute=0,不传")
|
private String passengers;
|
@ApiModelProperty(dataType = "String", required = false, value = "乘车人电话,substitute=0,不传")
|
private String passengersPhone;
|
@ApiModelProperty(dataType = "int", required = true, value = "订单类型(1=普通,2=预约)")
|
private Integer orderType;
|
@ApiModelProperty(dataType = "int", required = true, value = "订单来源(1:APP下单,2:扫码下单,3:小程序下单,4:司机下单,5:调度下单)")
|
private Integer orderSource;
|
|
public Integer getDriverId() {
|
return driverId;
|
}
|
|
public void setDriverId(Integer driverId) {
|
this.driverId = driverId;
|
}
|
|
public Double getPlacementLon() {
|
return placementLon;
|
}
|
|
public void setPlacementLon(Double placementLon) {
|
this.placementLon = placementLon;
|
}
|
|
public Double getPlacementLat() {
|
return placementLat;
|
}
|
|
public void setPlacementLat(Double placementLat) {
|
this.placementLat = placementLat;
|
}
|
|
public String getPlacementAddress() {
|
return placementAddress;
|
}
|
|
public void setPlacementAddress(String placementAddress) {
|
this.placementAddress = placementAddress;
|
}
|
|
public Double getStartLon() {
|
return startLon;
|
}
|
|
public void setStartLon(Double startLon) {
|
this.startLon = startLon;
|
}
|
|
public Double getStartLat() {
|
return startLat;
|
}
|
|
public void setStartLat(Double startLat) {
|
this.startLat = startLat;
|
}
|
|
public String getStartAddress() {
|
return startAddress;
|
}
|
|
public void setStartAddress(String startAddress) {
|
this.startAddress = startAddress;
|
}
|
|
public Double getEndLon() {
|
return endLon;
|
}
|
|
public void setEndLon(Double endLon) {
|
this.endLon = endLon;
|
}
|
|
public Double getEndLat() {
|
return endLat;
|
}
|
|
public void setEndLat(Double endLat) {
|
this.endLat = endLat;
|
}
|
|
public String getEndAddress() {
|
return endAddress;
|
}
|
|
public void setEndAddress(String endAddress) {
|
this.endAddress = endAddress;
|
}
|
|
public Double getTipMoney() {
|
return tipMoney;
|
}
|
|
public void setTipMoney(Double tipMoney) {
|
this.tipMoney = tipMoney;
|
}
|
|
public Integer getSubstitute() {
|
return substitute;
|
}
|
|
public void setSubstitute(Integer substitute) {
|
this.substitute = substitute;
|
}
|
|
public String getPassengers() {
|
return passengers;
|
}
|
|
public void setPassengers(String passengers) {
|
this.passengers = passengers;
|
}
|
|
public String getPassengersPhone() {
|
return passengersPhone;
|
}
|
|
public void setPassengersPhone(String passengersPhone) {
|
this.passengersPhone = passengersPhone;
|
}
|
|
public Integer getOrderType() {
|
return orderType;
|
}
|
|
public void setOrderType(Integer orderType) {
|
this.orderType = orderType;
|
}
|
|
public Integer getOrderSource() {
|
return orderSource;
|
}
|
|
public void setOrderSource(Integer orderSource) {
|
this.orderSource = orderSource;
|
}
|
|
@Override
|
public String toString() {
|
return "OrderTaxiWarpper{" +
|
"driverId=" + driverId +
|
", placementLon=" + placementLon +
|
", placementLat=" + placementLat +
|
", placementAddress='" + placementAddress + '\'' +
|
", startLon=" + startLon +
|
", startLat=" + startLat +
|
", startAddress='" + startAddress + '\'' +
|
", endLon=" + endLon +
|
", endLat=" + endLat +
|
", endAddress='" + endAddress + '\'' +
|
", tipMoney=" + tipMoney +
|
", substitute=" + substitute +
|
", passengers='" + passengers + '\'' +
|
", passengersPhone='" + passengersPhone + '\'' +
|
", orderType=" + orderType +
|
", orderSource=" + orderSource +
|
'}';
|
}
|
|
public static OrderTaxi getOrderTaxi(OrderTaxiWarpper orderTaxiWarpper){
|
OrderTaxi orderTaxi = new OrderTaxi();
|
orderTaxi.setDriverId(orderTaxiWarpper.getDriverId());
|
orderTaxi.setPlacementLon(orderTaxiWarpper.getPlacementLon());
|
orderTaxi.setPlacementLat(orderTaxiWarpper.getPlacementLat());
|
orderTaxi.setPlacementAddress(orderTaxiWarpper.getPlacementAddress());
|
orderTaxi.setStartLon(orderTaxiWarpper.getStartLon());
|
orderTaxi.setStartLat(orderTaxiWarpper.getStartLat());
|
orderTaxi.setStartAddress(orderTaxiWarpper.getStartAddress());
|
orderTaxi.setEndLon(orderTaxiWarpper.getEndLon());
|
orderTaxi.setEndLat(orderTaxiWarpper.getEndLat());
|
orderTaxi.setEndAddress(orderTaxiWarpper.getEndAddress());
|
orderTaxi.setTipMoney(orderTaxiWarpper.getTipMoney());
|
orderTaxi.setSubstitute(orderTaxiWarpper.getSubstitute());
|
orderTaxi.setPassengers(orderTaxiWarpper.getPassengers());
|
orderTaxi.setPassengersPhone(orderTaxiWarpper.getPassengersPhone());
|
orderTaxi.setOrderType(orderTaxiWarpper.getOrderType());
|
orderTaxi.setOrderSource(orderTaxiWarpper.getOrderSource());
|
return orderTaxi;
|
}
|
}
|