学校组

This commit is contained in:
2026-08-17 14:56:58 +08:00
parent db7176c236
commit 96dd81860e
4 changed files with 57 additions and 54 deletions
@@ -107,10 +107,12 @@ public class ComSchTreeService implements IComSchTreeService {
public List<BoaGroup> getSchTree(Integer schId) {
String cacheKey = RedisConstants.SCHOOL_TREE + "_" + schId;
String json = redisUtil.get(cacheKey,String.class);
List<BoaGroup> treeList = OtherUtil.jsonParseArrayTree(json, BoaGroup.class);
return treeList;
BoaGroup group = YschBaseOpenApi.getGroupById(schId,true);
return Collections.singletonList(group);
// String cacheKey = RedisConstants.SCHOOL_TREE + "_" + schId;
// String json = redisUtil.get(cacheKey,String.class);
// List<BoaGroup> treeList = OtherUtil.jsonParseArrayTree(json, BoaGroup.class);
// return treeList;
}