Ver Fonte

Merge remote-tracking branch 'origin/sit' into uat-20260202

dujian há 12 horas atrás
pai
commit
4201c13a8c

+ 5 - 2
alien-store/src/main/java/shop/alien/store/service/impl/CommonCommentServiceImpl.java

@@ -103,16 +103,19 @@ public class CommonCommentServiceImpl extends ServiceImpl<CommonCommentMapper, C
     public List<CommonCommentVo> getFirstLevelComment(Integer sourceType, Integer sourceId, Integer pageNum, Integer pageSize, Long userId, String likeType){
         List<CommonCommentVo> commonComments = null;
         QueryWrapper<CommonCommentVo> commentWrapper = new QueryWrapper<CommonCommentVo>();
-        if(sourceType == CommentSourceTypeEnum.STORE_COMMENT.getType()){
+/*        if(sourceType == CommentSourceTypeEnum.STORE_COMMENT.getType()){
             // 1查询店铺评价
             commentWrapper.eq("cc.source_type", CommentSourceTypeEnum.STORE_COMMENT.getType());
 
         } else if (sourceType == CommentSourceTypeEnum.DYNAMIC_COMMENT.getType()) {
             // 2查询动态评论
             commentWrapper.eq("cc.source_type", CommentSourceTypeEnum.DYNAMIC_COMMENT.getType());
-        }
+        } else if (sourceType == CommentSourceTypeEnum.CLOCK_IN_COMMENT.getType()) {
+            commentWrapper.eq("cc.source_type", CommentSourceTypeEnum.CLOCK_IN_COMMENT.getType());
+        }*/
         commentWrapper.eq("cc.source_id", sourceId)
                 .eq("cc.parent_id", 0)
+                .eq("cc.source_type",sourceType)
                 .eq("cc.delete_flag", CommonConstant.DELETE_FLAG_UNDELETE)
                 .orderByDesc("cc.created_time");
         Page<CommonCommentVo> page = null;