Commit 52ad4b6a by guojuxing

获取用户详情接口修复

parent eb171064
......@@ -382,9 +382,8 @@
<include refid="Base_Column_List" />
from tab_sys_menu
where status=1
and level = 1
and menu_type = 0
and project != 'gic'
<include refid="tree_filter"></include>
<if test="null != projectList and projectList.size() > 0">
and project in
<foreach collection="projectList" index="index" item="item" open="(" separator="," close=")">
......
......@@ -109,7 +109,11 @@ public class RoleController {
@RequestMapping("/list-app-menu-tree")
public RestResponse listAppMenuTree() {
return ResultControllerUtils.commonResult(menuApiService.listAppPageOfHasBuy(), AppMenuVO.class);
ServiceResponse<List<MenuDTO>> result = menuApiService.listAppPageOfHasBuy();
if (result.isSuccess()) {
return RestResponse.success(changeListToTree(MenuLevelConstants.FIRST_LEVEL_PARENT_ID, result.getResult()));
}
return EnterpriseRestResponse.failure(result);
}
public static List<Map<String, Object>> changeListToTree(int storeGroupId, List<MenuDTO> list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment