yonge 4 年之前
父节点
当前提交
cf18404a96
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/ClassGroupServiceImpl.java

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ClassGroupServiceImpl.java

@@ -1286,7 +1286,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
             throw new BizException("班级不存在");
             throw new BizException("班级不存在");
         }
         }
         Integer num = classGroupStudentMapperDao.countClassGroupStudentNum(classGroupId);
         Integer num = classGroupStudentMapperDao.countClassGroupStudentNum(classGroupId);
-        classGroup.setStudentNum(num - 1);
+        classGroup.setStudentNum(num);
         classGroup.setUpdateTime(new Date());
         classGroup.setUpdateTime(new Date());
 
 
         classGroupDao.update(classGroup);
         classGroupDao.update(classGroup);