|
@@ -29,10 +29,10 @@ public class PreviewMenuTreeService { |
|
|
@SwParam |
|
|
@SwParam |
|
|
private DbEngine dbEngine; |
|
|
private DbEngine dbEngine; |
|
|
|
|
|
|
|
|
public R treeAll(@SwParam("module") String module, @SwParam("type") int type, UserSession us) { |
|
|
|
|
|
|
|
|
public R treeAll(@SwParam("module") String module, UserSession us) { |
|
|
String prj_id = ModelProjectCache.getInstance().getIdByModule(module); |
|
|
String prj_id = ModelProjectCache.getInstance().getIdByModule(module); |
|
|
List<MenuVO> menuVOList = buildMenu(prj_id, module, us); |
|
|
List<MenuVO> menuVOList = buildMenu(prj_id, module, us); |
|
|
if (type == 1 && PubUtil.isNotEmpty(menuVOList)) { |
|
|
|
|
|
|
|
|
if (PubUtil.isNotEmpty(menuVOList)) { |
|
|
return R.success(menuVOList); |
|
|
return R.success(menuVOList); |
|
|
} |
|
|
} |
|
|
List<ModelForm> listForm; |
|
|
List<ModelForm> listForm; |
|
|