Просмотр исходного кода

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

刘云鑫 1 день назад
Родитель
Сommit
e149bf68fb

+ 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)