Kaynağa Gözat

fix:修改商家端评论升序显示

penghao 16 saat önce
ebeveyn
işleme
23bc4de1f6

+ 1 - 1
alien-store/src/main/java/shop/alien/store/service/impl/StoreCommentServiceImpl.java

@@ -260,7 +260,7 @@ public class StoreCommentServiceImpl extends ServiceImpl<StoreCommentMapper, Sto
             if(businessIds!=null && businessIds.size()>0){
                 childQueryWrapper.notIn("a.id",businessIds);
             }
-            childQueryWrapper.eq(null != businessId && 6 == businessId, "a.business_id", businessId).eq("a.delete_flag", 0).eq("a.reply_id", storeCommentVo.getId()).orderByDesc("a.created_time");
+            childQueryWrapper.eq(null != businessId && 6 == businessId, "a.business_id", businessId).eq("a.delete_flag", 0).eq("a.reply_id", storeCommentVo.getId()).orderByAsc("a.created_time");
             List<StoreCommentVo> childCommentList = storeCommentMapper.getCommentList(childQueryWrapper);
             storeCommentVo.setCommitCount(storeCommentVo.getCommitCount() + childCommentList.size());
             //评价的评论的评论