From f8cc44e926fd22f9d1d864dc684c827f6960270b Mon Sep 17 00:00:00 2001
From: hjl <1657978663@qq.com>
Date: 星期五, 26 七月 2024 11:51:30 +0800
Subject: [PATCH] feat: 最新代码及配置

---
 ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/vo/OrderDetailVO.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/vo/OrderDetailVO.java b/ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/vo/OrderDetailVO.java
index da1246a..2c769a1 100644
--- a/ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/vo/OrderDetailVO.java
+++ b/ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/vo/OrderDetailVO.java
@@ -1,6 +1,7 @@
 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;
 
@@ -16,7 +17,7 @@
 public class OrderDetailVO {
 
     @ApiModelProperty("订单id")
-    private Integer orderId;
+    private String orderId;
 
     @ApiModelProperty("订单编号")
     private String orderNumber;
@@ -52,12 +53,15 @@
     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("订单补贴金额")
@@ -68,6 +72,9 @@
 
     @ApiModelProperty("家电照片")
     private String photo;
+
+    @ApiModelProperty("是否评价(0:未评价,1:已评价)")
+    private Integer isEvaluate;
 
     public OrderDetailVO(Order order) {
         this.orderId = order.getId();
@@ -87,5 +94,6 @@
         this.completeTime = order.getCompleteTime();
         this.subsidy = order.getSubsidy();
         this.address = order.getAddress();
+        this.isEvaluate = order.getIsEvaluate();
     }
 }

--
Gitblit v1.7.1