suochencheng 7 년 전
부모
커밋
3bb70bad9f

+ 1 - 0
src/main/java/com/izouma/awesomeadmin/dao/ProductCommentMapper.xml

@@ -509,6 +509,7 @@
             </if>
             </if>
             <if test="userId != null and !&quot;&quot;.equals(userId)">
             <if test="userId != null and !&quot;&quot;.equals(userId)">
                 and user_id = #{userId}
                 and user_id = #{userId}
+                and type_flag = 1
             </if>
             </if>
             <if test="storeId != null and !&quot;&quot;.equals(storeId)">
             <if test="storeId != null and !&quot;&quot;.equals(storeId)">
                 and store_id = #{storeId}
                 and store_id = #{storeId}

+ 5 - 0
src/main/java/com/izouma/awesomeadmin/dao/UserOrderMapper.xml

@@ -820,6 +820,11 @@
                      select="com.izouma.awesomeadmin.dao.OrderAddressMapper.queryOrderAddress"
                      select="com.izouma.awesomeadmin.dao.OrderAddressMapper.queryOrderAddress"
                      column="{ orderId = id }"/>
                      column="{ orderId = id }"/>
 
 
+        <association property="productComment"
+                     javaType="com.izouma.awesomeadmin.model.ProductComment"
+                     select="com.izouma.awesomeadmin.dao.ProductCommentMapper.getCount"
+                     column="{ userId = user_id }"/>
+
         <collection property="orderRepairList"
         <collection property="orderRepairList"
                     ofType="com.izouma.awesomeadmin.model.OrderRepair"
                     ofType="com.izouma.awesomeadmin.model.OrderRepair"
                     select="com.izouma.awesomeadmin.dao.OrderRepairMapper.queryAllOrderRepair"
                     select="com.izouma.awesomeadmin.dao.OrderRepairMapper.queryAllOrderRepair"

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

@@ -59,6 +59,9 @@ public class UserOrder {
 
 
     private UserInfo userInfo;
     private UserInfo userInfo;
 
 
+    private ProductComment productComment;
+
+
     /**
     /**
      * 需要条数
      * 需要条数
      */
      */
@@ -388,5 +391,13 @@ public class UserOrder {
     public void setLimitNum(Integer limitNum) {
     public void setLimitNum(Integer limitNum) {
         this.limitNum = limitNum;
         this.limitNum = limitNum;
     }
     }
+
+    public ProductComment getProductComment() {
+        return productComment;
+    }
+
+    public void setProductComment(ProductComment productComment) {
+        this.productComment = productComment;
+    }
 }
 }