班级同步

This commit is contained in:
2026-08-20 09:01:04 +08:00
parent 14244729ee
commit 61902f6943
2 changed files with 4 additions and 2 deletions
@@ -95,7 +95,7 @@ public class SchClassInfoService {
//获取年级组
List<SelectIntVO> gradeGroupList = comSchTreeService.getSchGroupTypeList(schId, NodeType.GRADE.getId()).get(schsystemId);
if (gradeGroupList != null) {
if (gradeGroupList == null) {
BoaGroup academicGroup= sendUserBaseService.addGroup(year.toString(),parentId,year,NodeType.GRADE,schId);
parentId=academicGroup.getId();
}else {
@@ -220,7 +220,7 @@ public class SchClassInfoService {
// if (count > 0) throw new DException("班级下还有学生");
schClassRepository.deleteById(id);
cacheService.clearClassCache(schId);
sendUserBaseService.deleteGroup(id, schId);
String content = logService.buildDeleteClassLog(schId, schClass);
LogContextHolder.setDescription(content);
}