rdluck 4 years ago
parent
commit
76ab4e5235
1 changed files with 2 additions and 1 deletions
  1. 2 1
      models/company.go

+ 2 - 1
models/company.go

@@ -30,7 +30,8 @@ func GetCompanyPermission(companyId int) (permission string, err error) {
 			WHERE  a.company_id=?
 			AND a.product_id=2
             AND b.show_type=1
-			AND c.status IN('正式','试用','永续') `
+			AND c.status IN('正式','试用','永续') 
+            ORDER BY b.sort ASC `
 	o := orm.NewOrm()
 	err = o.Raw(sql, companyId).QueryRow(&permission)
 	return