dd
This commit is contained in:
@@ -2,6 +2,7 @@ package dao
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -44,10 +45,12 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
sql += " AND t1.bind_type = ?"
|
sql += " AND t1.bind_type = ?"
|
||||||
sqlParams = append(sqlParams, bindType)
|
sqlParams = append(sqlParams, bindType)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeList))", GenQuestionMarks(len(typeList)))
|
||||||
if len(typeList) > 0 {
|
if len(typeList) > 0 {
|
||||||
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
||||||
sqlParams = append(sqlParams, typeList)
|
sqlParams = append(sqlParams, typeList)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2, userID)
|
||||||
if authID != "" || authID2 != "" || userID != "" {
|
if authID != "" || authID2 != "" || userID != "" {
|
||||||
sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
|
sql += "AND (t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
|
||||||
sqlParams = append(sqlParams, authID, authID2, userID)
|
sqlParams = append(sqlParams, authID, authID2, userID)
|
||||||
@@ -60,6 +63,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
|||||||
// sql += " AND t1.auth_id2 = ?"
|
// sql += " AND t1.auth_id2 = ?"
|
||||||
// sqlParams = append(sqlParams, authID2)
|
// sqlParams = append(sqlParams, authID2)
|
||||||
//}
|
//}
|
||||||
|
globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeIDs))", GenQuestionMarks(len(typeIDs)))
|
||||||
if len(typeIDs) > 0 {
|
if len(typeIDs) > 0 {
|
||||||
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
||||||
sqlParams = append(sqlParams, typeIDs)
|
sqlParams = append(sqlParams, typeIDs)
|
||||||
|
|||||||
Reference in New Issue
Block a user