金币代理流水问题修复

This commit is contained in:
tianfeng 2025-11-08 17:03:12 +08:00
parent 6f35cb319f
commit 5e8dc1126d

View File

@ -39,7 +39,11 @@ public class FreightBalanceRunningWaterServiceImpl extends
@Override
public List<FreightBalanceRunningWater> flowByUserId(Long userId, Long lastId) {
return query()
.eq(FreightBalanceRunningWater::getUserId, userId)
.and(wrapper -> wrapper
.eq(FreightBalanceRunningWater::getUserId, userId)
.or()
.eq(FreightBalanceRunningWater::getAcceptUserId, userId)
)
.lt(Objects.nonNull(lastId), FreightBalanceRunningWater::getId, lastId)
.orderByDesc(FreightBalanceRunningWater::getId)
.last(PageConstant.DEFAULT_LIMIT)