Explorar o código

wip:权限处理

WH01243 %!s(int64=3) %!d(string=hai) anos
pai
achega
2fb8a49a45
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/jfw/front/dataExport.go

+ 2 - 2
src/jfw/front/dataExport.go

@@ -863,7 +863,7 @@ func (this *DataExport) GetPcEntAuth() {
 							isNew = true
 						}
 						entnicheMenu = true
-                }
+					}
 					break
 				}
 			}
@@ -873,7 +873,7 @@ func (this *DataExport) GetPcEntAuth() {
 			if user != nil && len(*user) > 0 {
 				for _, v := range *user {
 					if pcUsers[util.IntAll(v["ent_id"])] {
-						ents := public.Mysql.SelectBySql("select status,id,createtime,isNew from entniche_info where id=? ", util.IntAll(v["ent_id"]))
+						ents := public.Mysql.SelectBySql("select status,id,createtime,isNew from entniche_info where id=?  ORDER BY   power desc", util.IntAll(v["ent_id"]))
 						if ents != nil && len(*ents) != 0 {
 							for _, vv := range *ents {
 								if util.IntAll(vv["status"]) == 1 {