我通过问卷题目id的时候去查询所有的题目对应的题目的集合的时候为什么会出现类转换异常,实体类NairTopic中的两个变量的都是string类型的,这里在 //用题目的id集合查询所有题目对象
//用题目的id集合查询所有题目对象
public List<Topic> findByIds(List<Long> topicIdList) {
List<Topic> topicList = new ArrayList<>();
for (Long topicId : topicIdList) {
QueryWrapper qw = new QueryWrapper();
qw.eq("question_id",topicId);
Topic topic = topicMapper.selectById(qw);
topicList.add(topic);
}
return topicList;
}
}
的时候进行转化成实体类中Integer的时候好是不行,我该怎么解决啊?