|
@@ -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
|
|
|
}
|