getGroupTree 修改
This commit is contained in:
@@ -3,8 +3,8 @@ import com.yunhai.bschclassmanage.utils.UserContext;
|
||||
|
||||
|
||||
import com.yunhai.bschclassmanage.config.Config;
|
||||
import com.yunhai.bschclassmanage.model.tool.BaseTree;
|
||||
import com.yunhai.bschclassmanage.model.vo.SchSystemTreeVO;
|
||||
import com.yunhai.platform.utils.model.BoaGroup;
|
||||
import com.yunhai.bschclassmanage.model.vo.SelectIntVO;
|
||||
import com.yunhai.bschclassmanage.service.IComSchTreeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -23,13 +23,13 @@ public class SchTreeController {
|
||||
|
||||
|
||||
@GetMapping("getGroupTree")
|
||||
public List<BaseTree> getGroupTree()
|
||||
public List<BoaGroup> getGroupTree()
|
||||
{
|
||||
return comSchTreeService.getGroupTree();
|
||||
}
|
||||
|
||||
@GetMapping("getTeacherTree")
|
||||
public BaseTree getTeacherTree()
|
||||
public BoaGroup getTeacherTree()
|
||||
{
|
||||
return comSchTreeService.getTeacherTree(UserContext.getSchId());
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public class SchTreeController {
|
||||
|
||||
|
||||
@GetMapping("getTeaTree")
|
||||
public BaseTree getTeaTree()
|
||||
public BoaGroup getTeaTree()
|
||||
{
|
||||
return comSchTreeService.getTeaTree(UserContext.getSchId());
|
||||
}
|
||||
|
||||
@@ -55,13 +55,12 @@ public class SchsystemController {
|
||||
throw new DException("当前学校管理员未关联有效的学校");
|
||||
}
|
||||
} else { // 超管
|
||||
if (schId == null || schId <= 0) {
|
||||
if (schId == null || schId < 0) {
|
||||
throw new DException("学校ID不能为空且必须为正整数");
|
||||
}
|
||||
targetSchId = schId;
|
||||
}
|
||||
|
||||
|
||||
return schBinSchsystemService.getAcademicStageSchsystemList(targetSchId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user