Browse Source

no message

xingzai 2 years ago
parent
commit
ef31c69e8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/user.go

+ 1 - 1
models/user.go

@@ -207,7 +207,7 @@ type UserDetailByUserLogin struct {
 }
 
 func GetCompanyPermission(companyId int) (permission string, err error) {
-	sql := ` SELECT GROUP_CONCAT(DISTINCT b.chart_permission_name  ORDER BY b.sort ASC SEPARATOR ',') AS permission
+	sql := ` SELECT GROUP_CONCAT(DISTINCT b.remark  ORDER BY b.sort ASC SEPARATOR ',') AS permission
 			FROM company_report_permission AS a
 			INNER JOIN chart_permission AS b ON a.chart_permission_id=b.chart_permission_id
 			INNER JOIN company_product AS c ON a.company_id=c.company_id AND a.product_id=c.product_id