Kaynağa Gözat

feat:物业专版角色分配

wangchuanjin 1 yıl önce
ebeveyn
işleme
f042a929f3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      entbase/src/service/ent/ent.go

+ 1 - 1
entbase/src/service/ent/ent.go

@@ -120,7 +120,7 @@ func (a *Action) EntInfo() {
 		}
 		}
 	}
 	}
 	if Base.CountBySql(`select count(1) as count from base_power a 
 	if Base.CountBySql(`select count(1) as count from base_power a 
-		inner join base_account b on (a.function_code='bi_yx' and a.status=1 and a.end_time>? and b.ent_id=? and b.type=1 and a.account_id=b.id)`, NowFormat(Date_Full_Layout), entId) > 0 {
+		inner join base_account b on (a.function_code in ('bi_yx','bi_yx_wyzb') and a.status=1 and a.end_time>? and b.ent_id=? and b.type=1 and a.account_id=b.id)`, NowFormat(Date_Full_Layout), entId) > 0 {
 		m["nicheDis_show"] = 1
 		m["nicheDis_show"] = 1
 	}
 	}
 	a.ServeJson(Result{Data: m})
 	a.ServeJson(Result{Data: m})