1
0
suochencheng 7 лет назад
Родитель
Сommit
83b7f23c65

+ 8 - 1
src/main/java/com/izouma/awesomeadmin/dao/UserOrderMapper.xml

@@ -376,7 +376,14 @@
     </update>
     </update>
     <select id="queryUserOrderByPage" parameterType="java.util.Map" resultMap="AllInfoForGetOne">
     <select id="queryUserOrderByPage" parameterType="java.util.Map" resultMap="AllInfoForGetOne">
         select
         select
-        <include refid="Base_Column_List"/>
+        <include refid="Base_Column_List"/>,(SELECT
+        COUNT(1)
+        FROM
+        product_comment
+        WHERE
+        product_comment.del_flag = 'N'
+        AND product_comment.order_id = user_order.id
+        AND product_comment.type_flag = 1) as commentFlag
         from user_order
         from user_order
         <where>
         <where>
             and del_flag = 'N'
             and del_flag = 'N'

+ 10 - 0
src/main/java/com/izouma/awesomeadmin/model/UserOrder.java

@@ -61,6 +61,8 @@ public class UserOrder {
 
 
     private ProductComment productComment;
     private ProductComment productComment;
 
 
+    private Integer commentFlag;
+
 
 
     /**
     /**
      * 需要条数
      * 需要条数
@@ -399,5 +401,13 @@ public class UserOrder {
     public void setProductComment(ProductComment productComment) {
     public void setProductComment(ProductComment productComment) {
         this.productComment = productComment;
         this.productComment = productComment;
     }
     }
+
+    public Integer getCommentFlag() {
+        return commentFlag;
+    }
+
+    public void setCommentFlag(Integer commentFlag) {
+        this.commentFlag = commentFlag;
+    }
 }
 }
 
 

+ 1 - 0
src/main/java/com/izouma/awesomeadmin/web/OrderImageController.java

@@ -614,6 +614,7 @@ public class OrderImageController {
 
 
     }
     }
 
 
+
     /**
     /**
      * 单张下载
      * 单张下载
      *
      *