用户管理及下拉选查询接口开发

This commit is contained in:
haozq 2025-12-10 09:40:14 +08:00
parent dbf6c4592e
commit 4bd1350bb2
1 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,8 @@ public class PublicLoginController {
@ApiOperation(value = "获取部门树")
public AjaxRes getDeptTree(PublicUserVo vo) {
try{
List<MapBean> result = userService.getRole();
return AjaxRes.success(result);
List<ZNode> list = userService.getDepartmentTree();
return AjaxRes.success(list);
}catch (Exception e){
log.error(e.toString(),e);
}
@ -77,8 +77,8 @@ public class PublicLoginController {
public AjaxRes getRoleList(PublicUserVo vo) {
AjaxRes ar = new AjaxRes();
try {
List<ZNode> list = userService.getDepartmentTree();
ar.setSucceed(list);
List<MapBean> result = userService.getRole();
return AjaxRes.success(result);
} catch (Exception e) {
ar.setFailMsg(GlobalConst.DATA_FAIL);
}