Browse Source

默认菜单权限

yuandeguo 3 years ago
parent
commit
e4826f1adc

+ 1 - 1
saas-account/src/main/java/com/persagy/account/controller/SaasFunctionController.java

@@ -111,7 +111,7 @@ public class SaasFunctionController {
 			LambdaQueryWrapper<SaasFunction> queryWrapper = new SaasFunction.Builder().createQueryWrapper()
 					.menuIdEq(saasMenu.getMenuId()).builderQueryWrapper();
 			List<SaasFunction> defaultFunctions = this.saasFunctionService.list(queryWrapper.orderByAsc(SaasFunction::getCreateTime));
-			saasMenu.setFunctions(defaultFunctions);
+			return ResponseResultUtil.successResult(defaultFunctions);
 		}
     	// 获取此账号、此菜单下所对应的功能点信息集合 或者 产品页面树集合
     	this.saasProductHandler.queryMenuProductAuths(saasMenu, model.getAccountId(), accountBelong, model.getProjectId(), groupCode, isAdmin, true, model.isShowPageAuth());