|
@@ -563,10 +563,9 @@ 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 = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertIntegerMap(nums)), HashMap.class);
|
|
|
+ Map<Integer, Integer> numsMap = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertIntegerMap(classGroupDao.countTeacherNums(StringUtils.join(classGroupIds, ",")))),HashMap.class);
|
|
|
imGroupModels.forEach(e -> {
|
|
|
- Integer num = numsMap.get(e.getId());
|
|
|
+ Integer num = numsMap.get(Integer.parseInt(e.getId()));
|
|
|
e.setCount((num == null ? 0 : num) + e.getCount());
|
|
|
});
|
|
|
}
|