| | |
| | | import com.stylefeng.guns.modular.system.model.OrderPosition; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Data |
| | | @ApiModel("订单详情") |
| | | public class OrderInfoWarpper { |
| | | @ApiModelProperty("订单id") |
| | |
| | | private String remark; |
| | | @ApiModelProperty("是否首单免费1否,2是") |
| | | private String isFree; |
| | | |
| | | /** |
| | | * 收费方式(1=普通,2=夜间,3=高峰) |
| | | */ |
| | | @ApiModelProperty("收费方式(1=普通,2=夜间,3=高峰)") |
| | | private Integer moneyType; |
| | | /** |
| | | * 收费方式时间段 |
| | | */ |
| | | @ApiModelProperty("收费方式时间段") |
| | | private String moneyTime; |
| | | |
| | | private Integer startDuration; |
| | | /** |
| | | * 收据链接 |
| | | */ |
| | | @ApiModelProperty("收据链接") |
| | | private String receipt; |
| | | @ApiModelProperty("是否冻结(1=否,2=是)") |
| | | private Integer isFrozen; |
| | | |
| | | public Integer getStartDuration() { |
| | | return startDuration; |
| | | } |
| | | |
| | | public void setStartDuration(Integer startDuration) { |
| | | this.startDuration = startDuration; |
| | | } |
| | | |
| | | public Integer getMoneyType() { |
| | | return moneyType; |
| | | } |
| | | |
| | | public void setMoneyType(Integer moneyType) { |
| | | this.moneyType = moneyType; |
| | | } |
| | | |
| | | public String getMoneyTime() { |
| | | return moneyTime; |
| | | } |
| | | |
| | | public void setMoneyTime(String moneyTime) { |
| | | this.moneyTime = moneyTime; |
| | | } |
| | | |
| | | @ApiModelProperty("超时取消时间") |
| | | private Integer timeOutCancel; |
| | | private List<OrderPosition> orderPositionList; |
| | | |
| | | public List<OrderPosition> getOrderPositionList() { |
| | | return orderPositionList; |
| | | } |
| | | |
| | | public void setOrderPositionList(List<OrderPosition> orderPositionList) { |
| | | this.orderPositionList = orderPositionList; |
| | | } |
| | | |
| | | public String getIsFree() { |
| | | return isFree; |
| | | } |
| | | |
| | | public void setIsFree(String isFree) { |
| | | this.isFree = isFree; |
| | | } |
| | | |
| | | public Integer getOrderId() { |
| | | return orderId; |
| | | } |
| | | |
| | | public void setOrderId(Integer orderId) { |
| | | this.orderId = orderId; |
| | | } |
| | | |
| | | public Integer getOrderType() { |
| | | return orderType; |
| | | } |
| | | |
| | | public void setOrderType(Integer orderType) { |
| | | this.orderType = orderType; |
| | | } |
| | | |
| | | public Integer getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(Integer type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public Integer getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Integer state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public String getTravelTime() { |
| | | return travelTime; |
| | | } |
| | | |
| | | public void setTravelTime(String travelTime) { |
| | | this.travelTime = travelTime; |
| | | } |
| | | |
| | | public String getStartAddress() { |
| | | return startAddress; |
| | | } |
| | | |
| | | public void setStartAddress(String startAddress) { |
| | | this.startAddress = startAddress; |
| | | } |
| | | |
| | | public String getEndAddress() { |
| | | return endAddress; |
| | | } |
| | | |
| | | public void setEndAddress(String endAddress) { |
| | | this.endAddress = endAddress; |
| | | } |
| | | |
| | | public Integer getDriverId() { |
| | | return driverId; |
| | | } |
| | | |
| | | public void setDriverId(Integer driverId) { |
| | | this.driverId = driverId; |
| | | } |
| | | |
| | | public String getDriverAvatar() { |
| | | return driverAvatar; |
| | | } |
| | | |
| | | public void setDriverAvatar(String driverAvatar) { |
| | | this.driverAvatar = driverAvatar; |
| | | } |
| | | |
| | | public String getDriverName() { |
| | | return driverName; |
| | | } |
| | | |
| | | public void setDriverName(String driverName) { |
| | | this.driverName = driverName; |
| | | } |
| | | |
| | | public String getLicensePlate() { |
| | | return licensePlate; |
| | | } |
| | | |
| | | public void setLicensePlate(String licensePlate) { |
| | | this.licensePlate = licensePlate; |
| | | } |
| | | |
| | | public String getBrand() { |
| | | return brand; |
| | | } |
| | | |
| | | public void setBrand(String brand) { |
| | | this.brand = brand; |
| | | } |
| | | |
| | | public Double getScore() { |
| | | return score; |
| | | } |
| | | |
| | | public void setScore(Double score) { |
| | | this.score = score; |
| | | } |
| | | |
| | | public Integer getOrderNum() { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | public String getDriverPhone() { |
| | | return driverPhone; |
| | | } |
| | | |
| | | public void setDriverPhone(String driverPhone) { |
| | | this.driverPhone = driverPhone; |
| | | } |
| | | |
| | | public Double getCancelPayMoney() { |
| | | return cancelPayMoney; |
| | | } |
| | | |
| | | public void setCancelPayMoney(Double cancelPayMoney) { |
| | | this.cancelPayMoney = cancelPayMoney; |
| | | } |
| | | |
| | | public Double getPayMoney() { |
| | | return payMoney; |
| | | } |
| | | |
| | | public void setPayMoney(Double payMoney) { |
| | | this.payMoney = payMoney; |
| | | } |
| | | |
| | | public Double getTipMoney() { |
| | | return tipMoney; |
| | | } |
| | | |
| | | public void setTipMoney(Double tipMoney) { |
| | | this.tipMoney = tipMoney; |
| | | } |
| | | |
| | | public Double getOrderMoney() { |
| | | return orderMoney; |
| | | } |
| | | |
| | | public void setOrderMoney(Double orderMoney) { |
| | | this.orderMoney = orderMoney; |
| | | } |
| | | |
| | | public Double getStartMoney() { |
| | | return startMoney; |
| | | } |
| | | |
| | | public void setStartMoney(Double startMoney) { |
| | | this.startMoney = startMoney; |
| | | } |
| | | |
| | | public Double getMileageMoney() { |
| | | return mileageMoney; |
| | | } |
| | | |
| | | public void setMileageMoney(Double mileageMoney) { |
| | | this.mileageMoney = mileageMoney; |
| | | } |
| | | |
| | | public Double getDurationMoney() { |
| | | return durationMoney; |
| | | } |
| | | |
| | | public void setDurationMoney(Double durationMoney) { |
| | | this.durationMoney = durationMoney; |
| | | } |
| | | |
| | | public Double getLongDistanceMoney() { |
| | | return longDistanceMoney; |
| | | } |
| | | |
| | | public void setLongDistanceMoney(Double longDistanceMoney) { |
| | | this.longDistanceMoney = longDistanceMoney; |
| | | } |
| | | |
| | | public String getInsertTime() { |
| | | return insertTime; |
| | | } |
| | | |
| | | public void setInsertTime(String insertTime) { |
| | | this.insertTime = insertTime; |
| | | } |
| | | |
| | | public String getArriveTime() { |
| | | return arriveTime; |
| | | } |
| | | |
| | | public void setArriveTime(String arriveTime) { |
| | | this.arriveTime = arriveTime; |
| | | } |
| | | |
| | | 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 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 Integer getOrderScore() { |
| | | return orderScore; |
| | | } |
| | | |
| | | public void setOrderScore(Integer orderScore) { |
| | | this.orderScore = orderScore; |
| | | } |
| | | |
| | | public String getEvaluate() { |
| | | return evaluate; |
| | | } |
| | | |
| | | public void setEvaluate(String evaluate) { |
| | | this.evaluate = evaluate; |
| | | } |
| | | |
| | | public String getCarColor() { |
| | | return carColor; |
| | | } |
| | | |
| | | public void setCarColor(String carColor) { |
| | | this.carColor = carColor; |
| | | } |
| | | |
| | | public Integer getCancelId() { |
| | | return cancelId; |
| | | } |
| | | |
| | | public void setCancelId(Integer cancelId) { |
| | | this.cancelId = cancelId; |
| | | } |
| | | |
| | | public Double getTravelMoney() { |
| | | return travelMoney; |
| | | } |
| | | |
| | | public void setTravelMoney(Double travelMoney) { |
| | | this.travelMoney = travelMoney; |
| | | } |
| | | |
| | | public Double getParkMoney() { |
| | | return parkMoney; |
| | | } |
| | | |
| | | public void setParkMoney(Double parkMoney) { |
| | | this.parkMoney = parkMoney; |
| | | } |
| | | |
| | | public Double getRoadTollMoney() { |
| | | return roadTollMoney; |
| | | } |
| | | |
| | | public void setRoadTollMoney(Double roadTollMoney) { |
| | | this.roadTollMoney = roadTollMoney; |
| | | } |
| | | |
| | | public Double getRedPacketMoney() { |
| | | return redPacketMoney; |
| | | } |
| | | |
| | | public void setRedPacketMoney(Double redPacketMoney) { |
| | | this.redPacketMoney = redPacketMoney; |
| | | } |
| | | |
| | | public Double getCouponMoney() { |
| | | return couponMoney; |
| | | } |
| | | |
| | | public void setCouponMoney(Double couponMoney) { |
| | | this.couponMoney = couponMoney; |
| | | } |
| | | |
| | | public Double getDiscountMoney() { |
| | | return discountMoney; |
| | | } |
| | | |
| | | public void setDiscountMoney(Double discountMoney) { |
| | | this.discountMoney = discountMoney; |
| | | } |
| | | |
| | | public Integer getDevice() { |
| | | return device; |
| | | } |
| | | |
| | | public void setDevice(Integer device) { |
| | | this.device = device; |
| | | } |
| | | |
| | | public Integer getPeopleNumber() { |
| | | return peopleNumber; |
| | | } |
| | | |
| | | public void setPeopleNumber(Integer peopleNumber) { |
| | | this.peopleNumber = peopleNumber; |
| | | } |
| | | |
| | | public String getSeatNumber() { |
| | | return seatNumber; |
| | | } |
| | | |
| | | public void setSeatNumber(String seatNumber) { |
| | | this.seatNumber = seatNumber; |
| | | } |
| | | |
| | | public Double getMileage() { |
| | | return mileage; |
| | | } |
| | | |
| | | public void setMileage(Double mileage) { |
| | | this.mileage = mileage; |
| | | } |
| | | |
| | | public Double getDuration() { |
| | | return duration; |
| | | } |
| | | |
| | | public void setDuration(Double duration) { |
| | | this.duration = duration; |
| | | } |
| | | |
| | | public Double getWait() { |
| | | return wait; |
| | | } |
| | | |
| | | public void setWait(Double wait) { |
| | | this.wait = wait; |
| | | } |
| | | |
| | | public Double getWaitMoney() { |
| | | return waitMoney; |
| | | } |
| | | |
| | | public void setWaitMoney(Double waitMoney) { |
| | | this.waitMoney = waitMoney; |
| | | } |
| | | |
| | | public Double getLongDistance() { |
| | | return longDistance; |
| | | } |
| | | |
| | | public void setLongDistance(Double longDistance) { |
| | | this.longDistance = longDistance; |
| | | } |
| | | |
| | | public Double getStartMileage() { |
| | | return startMileage; |
| | | } |
| | | |
| | | public void setStartMileage(Double startMileage) { |
| | | this.startMileage = startMileage; |
| | | } |
| | | |
| | | public String getTravelTime1() { |
| | | return travelTime1; |
| | | } |
| | | |
| | | public void setTravelTime1(String travelTime1) { |
| | | this.travelTime1 = travelTime1; |
| | | } |
| | | |
| | | public Double getDiscount() { |
| | | return discount; |
| | | } |
| | | |
| | | public void setDiscount(Double discount) { |
| | | this.discount = discount; |
| | | } |
| | | |
| | | public Integer getCancelUserType() { |
| | | return cancelUserType; |
| | | } |
| | | |
| | | public void setCancelUserType(Integer cancelUserType) { |
| | | this.cancelUserType = cancelUserType; |
| | | } |
| | | |
| | | public Double getCancelMoney() { |
| | | return cancelMoney; |
| | | } |
| | | |
| | | public void setCancelMoney(Double cancelMoney) { |
| | | this.cancelMoney = cancelMoney; |
| | | } |
| | | |
| | | public String getCancelReason() { |
| | | return cancelReason; |
| | | } |
| | | |
| | | public void setCancelReason(String cancelReason) { |
| | | this.cancelReason = cancelReason; |
| | | } |
| | | |
| | | public String getCancelRemark() { |
| | | return cancelRemark; |
| | | } |
| | | |
| | | public void setCancelRemark(String cancelRemark) { |
| | | this.cancelRemark = cancelRemark; |
| | | } |
| | | |
| | | public String getStartCity() { |
| | | return startCity; |
| | | } |
| | | |
| | | public void setStartCity(String startCity) { |
| | | this.startCity = startCity; |
| | | } |
| | | |
| | | public String getEndCity() { |
| | | return endCity; |
| | | } |
| | | |
| | | public void setEndCity(String endCity) { |
| | | this.endCity = endCity; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getLineShiftTime() { |
| | | return lineShiftTime; |
| | | } |
| | | |
| | | public void setLineShiftTime(String lineShiftTime) { |
| | | this.lineShiftTime = lineShiftTime; |
| | | } |
| | | |
| | | public Integer getPayType() { |
| | | return payType; |
| | | } |
| | | |
| | | public void setPayType(Integer payType) { |
| | | this.payType = payType; |
| | | } |
| | | |
| | | public String getReceipt() { |
| | | return receipt; |
| | | } |
| | | |
| | | public void setReceipt(String receipt) { |
| | | this.receipt = receipt; |
| | | } |
| | | |
| | | public Integer getIsFrozen() { |
| | | return isFrozen; |
| | | } |
| | | |
| | | public void setIsFrozen(Integer isFrozen) { |
| | | this.isFrozen = isFrozen; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "OrderInfoWarpper{" + |
| | | "orderId=" + orderId + |
| | | ", type=" + type + |
| | | ", state=" + state + |
| | | ", insertTime='" + insertTime + '\'' + |
| | | ", travelTime='" + travelTime + '\'' + |
| | | ", travelTime1='" + travelTime1 + '\'' + |
| | | ", arriveTime='" + arriveTime + '\'' + |
| | | ", startLon=" + startLon + |
| | | ", startLat=" + startLat + |
| | | ", startAddress='" + startAddress + '\'' + |
| | | ", startCity='" + startCity + '\'' + |
| | | ", endLon=" + endLon + |
| | | ", endLat=" + endLat + |
| | | ", endAddress='" + endAddress + '\'' + |
| | | ", endCity='" + endCity + '\'' + |
| | | ", driverId=" + driverId + |
| | | ", driverAvatar='" + driverAvatar + '\'' + |
| | | ", driverName='" + driverName + '\'' + |
| | | ", licensePlate='" + licensePlate + '\'' + |
| | | ", brand='" + brand + '\'' + |
| | | ", carColor='" + carColor + '\'' + |
| | | ", score=" + score + |
| | | ", orderNum=" + orderNum + |
| | | ", driverPhone='" + driverPhone + '\'' + |
| | | ", cancelPayMoney=" + cancelPayMoney + |
| | | ", cancelId=" + cancelId + |
| | | ", orderMoney=" + orderMoney + |
| | | ", startMoney=" + startMoney + |
| | | ", startMileage=" + startMileage + |
| | | ", mileage=" + mileage + |
| | | ", mileageMoney=" + mileageMoney + |
| | | ", duration=" + duration + |
| | | ", durationMoney=" + durationMoney + |
| | | ", wait=" + wait + |
| | | ", waitMoney=" + waitMoney + |
| | | ", longDistance=" + longDistance + |
| | | ", longDistanceMoney=" + longDistanceMoney + |
| | | ", travelMoney=" + travelMoney + |
| | | ", parkMoney=" + parkMoney + |
| | | ", roadTollMoney=" + roadTollMoney + |
| | | ", redPacketMoney=" + redPacketMoney + |
| | | ", couponMoney=" + couponMoney + |
| | | ", discount=" + discount + |
| | | ", discountMoney=" + discountMoney + |
| | | ", payMoney=" + payMoney + |
| | | ", tipMoney=" + tipMoney + |
| | | ", orderScore=" + orderScore + |
| | | ", evaluate='" + evaluate + '\'' + |
| | | ", device=" + device + |
| | | ", peopleNumber=" + peopleNumber + |
| | | ", seatNumber='" + seatNumber + '\'' + |
| | | ", cancelUserType=" + cancelUserType + |
| | | ", cancelMoney=" + cancelMoney + |
| | | ", cancelReason='" + cancelReason + '\'' + |
| | | ", cancelRemark='" + cancelRemark + '\'' + |
| | | '}'; |
| | | } |
| | | |
| | | public static OrderInfoWarpper getOrderInfoWarpper(Map<String, Object> map){ |
| | | OrderInfoWarpper orderInfoWarpper = new OrderInfoWarpper(); |
| | |
| | | orderInfoWarpper.setPayType(null != map.get("payType") ? Integer.valueOf(map.get("payType").toString()) : 4); |
| | | orderInfoWarpper.setReceipt(null != map.get("receipt") ? map.get("receipt").toString() : ""); |
| | | orderInfoWarpper.setIsFrozen(null != map.get("isFrozen") ? Integer.valueOf(map.get("isFrozen").toString()) : 1); |
| | | orderInfoWarpper.setTimeOutCancel(null != map.get("timeOutCancel") ? Integer.valueOf(map.get("timeOutCancel").toString()) : 0); |
| | | } |
| | | if(orderInfoWarpper.getState()==7){ |
| | | orderInfoWarpper.setOrderMoney(orderInfoWarpper.getOrderMoney()-orderInfoWarpper.getDiscountMoney()); |