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);
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -21,27 +21,27 @@ public class SyncUserController {
|
||||
|
||||
@PostMapping("AddUser")
|
||||
public void AddUser(@RequestBody String jsonString) {
|
||||
log.info("jsonString="+jsonString);
|
||||
log.info("AddUser jsonString="+jsonString);
|
||||
List<SyncUserDTO> userlist = OtherUtil.jsonParseList(jsonString, SyncUserDTO.class);
|
||||
syncUserService.syncAddOrUpdate(userlist);
|
||||
}
|
||||
|
||||
@PostMapping("UpdateUser")
|
||||
public void UpdateUser(@RequestBody String jsonString) {
|
||||
log.info("jsonString="+jsonString);
|
||||
log.info("UpdateUser jsonString="+jsonString);
|
||||
List<SyncUserDTO> userList = OtherUtil.jsonParseList(jsonString, SyncUserDTO.class);
|
||||
syncUserService.syncAddOrUpdate(userList);
|
||||
}
|
||||
|
||||
@PostMapping("DeleteUser")
|
||||
public void DeleteUser(@RequestBody String jsonString) {
|
||||
log.info("jsonString="+jsonString);
|
||||
log.info("DeleteUser jsonString="+jsonString);
|
||||
List<DeleteUser> deleteUserList= OtherUtil.jsonParseList(jsonString, DeleteUser.class);
|
||||
syncUserService.deleteUser(deleteUserList);
|
||||
}
|
||||
|
||||
@PostMapping("SyncUser")
|
||||
public void SyncUser(@RequestBody String jsonString) {
|
||||
log.info("jsonString="+jsonString);
|
||||
log.info("SyncUser jsonString="+jsonString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user