怎么把count添加到list里

List list = shopsService.queryAllByCriteria(params);
for (ShopsVo shopsVo : list) {
int count = shopsServeService.selectCountByShopId(shopsVo.getId());
List> skill = shopsSkillService.selectSkillByShopId(shopsVo.getId());
}

请把问题描述的清晰点,从代码看你的list 是放的对象,count属性不可以放进去的,或许你需要遍历取出对象然后setCount(count)?

谢谢,这个问题我已经解决了