Browse Source

Merge branch 'feature/v1.2.13' of http://192.168.3.207:8080/BaseService/userCenter into feature/v1.2.13

wangshan 2 years ago
parent
commit
d3eb1e57ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/identity.go

+ 1 - 1
service/identity.go

@@ -146,7 +146,7 @@ func IdentityByEntUserId(entUserId int64) *Identity {
 
 //根据企业id获取身份信息
 func IdentityByEntId(entId int64) *Identity {
-	list := entity.Mysql.SelectBySql(`select id from base_account where ent_id=? and type=1 and person_id=0 limit 1`, entId)
+	list := entity.BaseMysql.SelectBySql(`select id from base_account where ent_id=? and type=1 and person_id=0 limit 1`, entId)
 	if list == nil || len(*list) == 0 {
 		return nil
 	}