用户管理及下拉选查询接口开发
This commit is contained in:
parent
dbf6c4592e
commit
4bd1350bb2
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue