Updata
This commit is contained in:
parent
9b22520851
commit
14609d29ca
@ -107,6 +107,9 @@ func GetQuestionnaireSurveyInfo(req *bundle.GetQuestionnaireSurveyInfoRequest) (
|
||||
Order("created_at desc").
|
||||
First(&questionnaireInfo).Error
|
||||
if err != nil {
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return nil, errors.New("问卷信息不存在")
|
||||
}
|
||||
return data, err
|
||||
}
|
||||
return data, nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user