소스 검색

bugfix:查询的时候如果传入source_type=5则转换为2

刘云鑫 1 일 전
부모
커밋
e149bf68fb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      alien-store/src/main/java/shop/alien/store/service/impl/CommonCommentServiceImpl.java

+ 3 - 0
alien-store/src/main/java/shop/alien/store/service/impl/CommonCommentServiceImpl.java

@@ -113,6 +113,9 @@ public class CommonCommentServiceImpl extends ServiceImpl<CommonCommentMapper, C
         } else if (sourceType == CommentSourceTypeEnum.CLOCK_IN_COMMENT.getType()) {
             commentWrapper.eq("cc.source_type", CommentSourceTypeEnum.CLOCK_IN_COMMENT.getType());
         }*/
+        if(sourceType == CommentSourceTypeEnum.STORE_DYNAMIC_COMMENT.getType()){
+            sourceType = CommentSourceTypeEnum.DYNAMIC_COMMENT.getType();
+        }
         commentWrapper.eq("cc.source_id", sourceId)
                 .eq("cc.parent_id", 0)
                 .eq("cc.source_type",sourceType)