dd
This commit is contained in:
@@ -38,10 +38,10 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
utils.DefaultTimeValue,
|
||||
model.UserStatusNormal,
|
||||
}
|
||||
//if userID != "" {
|
||||
// sql += " AND t1.user_id = ?"
|
||||
// sqlParams = append(sqlParams, userID)
|
||||
//}
|
||||
if userID != "" {
|
||||
sql += " AND t1.user_id = ?"
|
||||
sqlParams = append(sqlParams, userID)
|
||||
}
|
||||
globals.SugarLogger.Debug("输出一下传入的bindType", bindType)
|
||||
if bindType != model.AuthBindTypeAll {
|
||||
sql += " AND t1.bind_type = ?"
|
||||
@@ -52,10 +52,10 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
// sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
||||
// sqlParams = append(sqlParams, typeList)
|
||||
//}
|
||||
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2, userID)
|
||||
if authID != "" || authID2 != "" || userID != "" {
|
||||
sql += " AND ( t1.auth_id = ? OR t1.auth_id2 = ? OR t1.user_id = ? )"
|
||||
sqlParams = append(sqlParams, authID, authID2, userID)
|
||||
globals.SugarLogger.Debug("输出一下传入的authID,authID2", authID, authID2)
|
||||
if authID != "" || authID2 != "" {
|
||||
sql += " AND ( t1.auth_id = ? OR t1.auth_id2 = ? )"
|
||||
sqlParams = append(sqlParams, authID, authID2)
|
||||
}
|
||||
//if authID != "" {
|
||||
// sql += " AND t1.auth_id = ?"
|
||||
@@ -71,7 +71,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
||||
sqlParams = append(sqlParams, typeIDs)
|
||||
}
|
||||
//sql += " ORDER BY t1.type"
|
||||
sql += " ORDER BY t1.type"
|
||||
globals.SugarLogger.Debug("输出一下sql", sql)
|
||||
err = GetRows(db, &authList, sql, sqlParams)
|
||||
globals.SugarLogger.Debug("authList==================", authList)
|
||||
|
||||
Reference in New Issue
Block a user