This commit is contained in:
77
2024-08-13 17:57:58 +08:00
parent 27e37ba812
commit 52c80f1f3a
2 changed files with 3 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ public class RankAppController {
Map<Long, User> userMap = userList.stream().collect(Collectors.toMap(User::getId, Function.identity()));
Map<Long, AnchorStatusDTO> anchorStatusMap = new HashMap<>();
if(CollectionUtils.isNotEmpty(userIds)){
List<AnchorStatusDTO> anchorStatusList = anchorMapper.anchorStatus(userList);
List<AnchorStatusDTO> anchorStatusList = anchorMapper.anchorStatus(userIds);
anchorStatusMap = anchorStatusList.stream().collect(Collectors.toMap(AnchorStatusDTO::getUserId, Function.identity()));
}
long lastLove = 0;

View File

@@ -11,6 +11,7 @@ import com.ruoyi.cai.dto.app.vo.anchor.AnchorStatusDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Set;
/**
* 女神列表Mapper接口
@@ -28,5 +29,5 @@ public interface AnchorMapper extends BaseMapper<Anchor> {
boolean incsServiceTimeAndCount(@Param("toUid") Long toUid, @Param("callTime") Long callTime, @Param("count") int count);
List<AnchorStatusDTO> anchorStatus(@Param("userList") List<User> userList);
List<AnchorStatusDTO> anchorStatus(@Param("userList") Set<Long> userList);
}