取消全部
This commit is contained in:
@@ -14,6 +14,7 @@ import com.yunhai.bschclassmanage.model.vo.TreeSelectVO;
|
||||
import com.yunhai.bschclassmanage.service.IBaseSchsystemGradeService;
|
||||
import com.yunhai.bschclassmanage.service.IBaseSchsystemService;
|
||||
import com.yunhai.bschclassmanage.service.ISchBinSchsystemService;
|
||||
import com.yunhai.bschclassmanage.service.ISyncUserBaseService;
|
||||
import com.yunhai.bschclassmanage.utils.RedisConstants;
|
||||
import com.yunhai.bschclassmanage.utils.RedisUtil;
|
||||
import com.yunhai.platform.utils.exception.DException;
|
||||
@@ -38,6 +39,8 @@ public class SchBinSchsystemService implements ISchBinSchsystemService {
|
||||
@Autowired
|
||||
private IBaseSchsystemService baseSchsystemService;
|
||||
|
||||
@Autowired
|
||||
private ISyncUserBaseService syncUserBaseService;
|
||||
|
||||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
@@ -133,9 +136,8 @@ public class SchBinSchsystemService implements ISchBinSchsystemService {
|
||||
schBinSchsystemRepository.saveAll(newList);
|
||||
}
|
||||
String cacheKey = RedisConstants.SCHOOL_GRAGE+"_"+schId;
|
||||
SchGroupInitialization(schId);
|
||||
redisUtil.del(cacheKey);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -239,14 +241,14 @@ public class SchBinSchsystemService implements ISchBinSchsystemService {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void SchGroupInitialization(Integer schId)
|
||||
private void SchGroupInitialization(Integer schId)
|
||||
{
|
||||
//添加学生组
|
||||
BoaGroup teaGroup= CreateGroup(NodeType.TEACHER.getId(),"教师组",schId,1);
|
||||
BoaGroup stuGroup= CreateGroup(NodeType.STUDENT.getId(),"学生组",schId,2);
|
||||
BoaGroup teaGroup= syncUserBaseService.addGroup("教师组",schId,1,NodeType.TEACHER);
|
||||
BoaGroup stuGroup= syncUserBaseService.addGroup("学生组",schId,2,NodeType.STUDENT);
|
||||
|
||||
//创建校长室
|
||||
CreateGroup(NodeType.NORMAL.getId(),"校长室", teaGroup.getId(),1);
|
||||
syncUserBaseService.addGroup("校长室", teaGroup.getId(),1,NodeType.NORMAL);
|
||||
|
||||
//获取学制
|
||||
List<SchBinSchsystem> schsystemBinList=getSchBinSchsystemList(schId);
|
||||
@@ -259,7 +261,7 @@ public class SchBinSchsystemService implements ISchBinSchsystemService {
|
||||
Integer scort=1;
|
||||
for (SchBinSchsystem schsystem:schsystemBinList) {
|
||||
//添加学段组
|
||||
BoaGroup sectionGroup= CreateGroup(NodeType.SECTION.getId(),schsystemMap.get(schsystem.getId()),stuGroup.getId(),scort);
|
||||
BoaGroup sectionGroup= syncUserBaseService.addGroup(schsystemMap.get(schsystem.getId()),stuGroup.getId(),scort,NodeType.SECTION);
|
||||
schsystem.setGroupId(sectionGroup.getId());
|
||||
scort++;
|
||||
}
|
||||
@@ -269,9 +271,6 @@ public class SchBinSchsystemService implements ISchBinSchsystemService {
|
||||
|
||||
}
|
||||
|
||||
public BoaGroup CreateGroup(Integer NodeType,String name,Integer parentId,Integer scort)
|
||||
{
|
||||
return new BoaGroup();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user