Ver Fonte

fix(comment): 修复粉丝关系查询中的条件过滤问题

- 移除了粉丝类型过滤条件,保留删除标记过滤
- 确保粉丝关系查询能够正确匹配所有类型的粉丝记录
- 修复了因过滤条件过于严格导致的关系查询失败问题
fcw há 1 dia atrás
pai
commit
0e37109ce6

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

@@ -340,7 +340,7 @@ public class CommonCommentServiceImpl extends ServiceImpl<CommonCommentMapper, C
             LifeFansIdentityQuery.Scope fanScope = LifeFansIdentityQuery.resolve(fansId, typeUtil);
             LifeFansIdentityQuery.Scope followedScope = LifeFansIdentityQuery.resolve(publisherPhoneId, typeUtil);
             LambdaQueryWrapper<LifeFans> fansQuery = new LambdaQueryWrapper<>();
-            fansQuery.eq(LifeFans::getDeleteFlag, 0).eq(LifeFans::getFansType, fansType);
+            fansQuery.eq(LifeFans::getDeleteFlag, 0);
             LifeFansIdentityQuery.applyPair(fansQuery, fanScope, followedScope);
             LifeFans lifeFans = lifeFansMapper.selectOne(fansQuery.last("limit 1"));
             if(null != lifeFans){