|
|
@@ -99,13 +99,13 @@ func (l *LoginByWeixinLogic) LoginByWeixin(req types.LoginByWeixinRequest) (*typ
|
|
|
logx.Error(err)
|
|
|
return nil, err
|
|
|
}
|
|
|
- erpUser, err := model.GetAcquirePerm(rtnInfo.UserInfo.ID, l.svcCtx.Transformer, l.svcCtx.DB)
|
|
|
+ partUser, err := model.GetPartTimeXormByUserId(rtnInfo.UserInfo.ID, l.svcCtx.DB)
|
|
|
if err != nil {
|
|
|
logx.Error(err)
|
|
|
return nil, err
|
|
|
}
|
|
|
//关联兼职
|
|
|
- if erpUser == nil || erpUser.UserId == "" {
|
|
|
+ if partUser == nil || partUser.UserId == 0 {
|
|
|
partTime := new(model.I2billMktPartTimeXorm)
|
|
|
_, err = l.svcCtx.DB.Where("ipone_number = ? and del_flag = 0 and user_id = 0", rtnInfo.UserInfo.Mobile).Get(partTime)
|
|
|
if err != nil {
|