浏览代码

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

wangshan 2 年之前
父节点
当前提交
d3eb1e57ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 	}