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

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