数据
This commit is contained in:
@@ -114,7 +114,7 @@ public class RankAppController {
|
|||||||
Map<Long, User> userMap = userList.stream().collect(Collectors.toMap(User::getId, Function.identity()));
|
Map<Long, User> userMap = userList.stream().collect(Collectors.toMap(User::getId, Function.identity()));
|
||||||
Map<Long, AnchorStatusDTO> anchorStatusMap = new HashMap<>();
|
Map<Long, AnchorStatusDTO> anchorStatusMap = new HashMap<>();
|
||||||
if(CollectionUtils.isNotEmpty(userIds)){
|
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()));
|
anchorStatusMap = anchorStatusList.stream().collect(Collectors.toMap(AnchorStatusDTO::getUserId, Function.identity()));
|
||||||
}
|
}
|
||||||
long lastLove = 0;
|
long lastLove = 0;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import com.ruoyi.cai.dto.app.vo.anchor.AnchorStatusDTO;
|
|||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 女神列表Mapper接口
|
* 女神列表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);
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user