This commit is contained in:
eson 2023-09-05 15:23:43 +08:00
parent 81ad6122a7
commit 3533a96b56

View File

@ -31,7 +31,7 @@ type UserBasicInfoForSave struct {
}
func (u *FsUserModel) FindUserByEmail(ctx context.Context, emailname string) (resp FsUser, err error) {
err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ?", emailname).Take(&resp).Error
err = u.db.WithContext(ctx).Model(&FsUser{}).Where("`email` = ? and is_del = ?", emailname, 0).Take(&resp).Error
return resp, err
}