BUGFIX:无法查看我喜欢的作品

This commit is contained in:
2025-09-03 00:23:32 +08:00
parent 3c071378ad
commit f5ecd34a9c

View File

@@ -433,7 +433,7 @@ public class PortfolioServiceImpl extends ServiceImpl<PortfolioMapper, Portfolio
// 查询用户的作品集
if (query.getGetMyPortfolio() == 1) {
qw.lambda().eq(Portfolio::getAccountId, query.getAccountId());
} else if (!Objects.isNull(query.getAccountId()) && !query.getAccountId().equals(0L)) {
} else if (!Objects.isNull(query.getAccountId()) && !query.getAccountId().equals(0L) && query.getGetLikePortfolio() != 1) {
qw.lambda().eq(Portfolio::getAccountId, query.getAccountId());
}