| | |
| | | package com.ruoyi.user.vo; |
| | | |
| | | import com.ruoyi.user.entity.Order; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.order.api.entity.Order; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | public class OrderDetailVO { |
| | | |
| | | @ApiModelProperty("订单id") |
| | | private Integer orderId; |
| | | private String orderId; |
| | | |
| | | @ApiModelProperty("订单编号") |
| | | private String orderNumber; |
| | |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty("接单时间(师傅接单或后台派单,更新该字段时间)") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date acceptTime; |
| | | |
| | | @ApiModelProperty("师傅到达预约地点时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date arriveTime; |
| | | |
| | | @ApiModelProperty("订单完成时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date completeTime; |
| | | |
| | | @ApiModelProperty("订单补贴金额") |
| | |
| | | |
| | | @ApiModelProperty("家电照片") |
| | | private String photo; |
| | | @ApiModelProperty("师傅照片") |
| | | private String workPic; |
| | | |
| | | @ApiModelProperty("是否评价(0:未评价,1:已评价)") |
| | | private Integer isEvaluate; |
| | | |
| | | public OrderDetailVO(Order order) { |
| | | this.orderId = order.getId(); |
| | |
| | | this.completeTime = order.getCompleteTime(); |
| | | this.subsidy = order.getSubsidy(); |
| | | this.address = order.getAddress(); |
| | | this.isEvaluate = order.getIsEvaluate(); |
| | | } |
| | | } |