diff --git a/internal/dao/questionnaire_survey.go b/internal/dao/questionnaire_survey.go index b29f9b2..dcb755b 100644 --- a/internal/dao/questionnaire_survey.go +++ b/internal/dao/questionnaire_survey.go @@ -20,8 +20,8 @@ func SendQuestionnaireSurvey(req *bundle.SendQuestionnaireSurveyRequest) (resp * mau.user_num as user_num, mau.tel_num as user_tel, marn.name as user_name - from micro-account.user as mau - left join micro-account.real_name as marn on marn.id = mau.real_name_id and marn.deleted_at is null + from `+"`micro-account`.`user`"+` as mau + left join `+"`micro-account`.`real_name`"+` as marn on marn.id = mau.real_name_id and marn.deleted_at is null where mau.deleted_at is null and mau.tel_num = ? `, req.UserTel).Scan(&userInfo).Error if err != nil {