|
@@ -506,11 +506,11 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if (imGroupModels != null && imGroupModels.size() > 0) {
|
|
|
Set<String> classGroupIds = imGroupModels.stream().map(e -> e.getId()).collect(Collectors.toSet());
|
|
|
//获取班级老师总数map
|
|
|
- List<Map<Integer, Integer>> nums = classGroupDao.countTeacherNums(StringUtils.join(classGroupIds, ","));
|
|
|
- Map<Integer, Integer> numsMap = MapUtil.convertMybatisMap(nums);
|
|
|
+ List<Map<Integer, Long>> nums = classGroupDao.countTeacherNums(StringUtils.join(classGroupIds, ","));
|
|
|
+ Map<Integer, Long> numsMap = MapUtil.convertMybatisMap(nums);
|
|
|
imGroupModels.forEach(e -> {
|
|
|
- Integer num = numsMap.get(e.getId());
|
|
|
- e.setCount(num == null ? 0 : num + e.getCount());
|
|
|
+ Long num = numsMap.get(Integer.parseInt(e.getId()));
|
|
|
+ e.setCount((int)(num == null ? 0L : num) + e.getCount());
|
|
|
});
|
|
|
}
|
|
|
return imGroupModels;
|