提交 b4935fef 编写于 作者: programor_guo's avatar programor_guo

nil return modify

上级 d1fba4c1
......@@ -114,7 +114,7 @@ func SelectSomeUserID(userIDList []string) ([]string, error) {
return nil, err
}
var resultArr []string
err = dbConn.Table("user").Where("user_id IN (?) ", userIDList).Pluck("user_id", &resultArr).Error
err = dbConn.Table("user").Where("user_id IN (?) ", userIDList).Find(&resultArr).Error
if err != nil {
return nil, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册