dd
This commit is contained in:
@@ -33,6 +33,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
SELECT *
|
||||
FROM auth_bind t1
|
||||
WHERE t1.deleted_at = ? AND t1.status = ?`
|
||||
globals.SugarLogger.Debug("输出一下传入的utils.DefaultTimeValue,model.UserStatusNormal", utils.DefaultTimeValue, model.UserStatusNormal)
|
||||
sqlParams := []interface{}{
|
||||
utils.DefaultTimeValue,
|
||||
model.UserStatusNormal,
|
||||
@@ -41,11 +42,12 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
// sql += " AND t1.user_id = ?"
|
||||
// sqlParams = append(sqlParams, userID)
|
||||
//}
|
||||
globals.SugarLogger.Debug("输出一下传入的bindType", bindType)
|
||||
if bindType != model.AuthBindTypeAll {
|
||||
sql += " AND t1.bind_type = ?"
|
||||
sqlParams = append(sqlParams, bindType)
|
||||
}
|
||||
globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeList))", GenQuestionMarks(len(typeList)))
|
||||
|
||||
//if len(typeList) > 0 {
|
||||
// sql += " AND t1.type IN (" + GenQuestionMarks(len(typeList)) + ")"
|
||||
// sqlParams = append(sqlParams, typeList)
|
||||
@@ -65,6 +67,7 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
//}
|
||||
globals.SugarLogger.Debug("输出一下传入的GenQuestionMarks(len(typeIDs))", GenQuestionMarks(len(typeIDs)))
|
||||
if len(typeIDs) > 0 {
|
||||
globals.SugarLogger.Debug("我进来了typeID")
|
||||
sql += " AND t1.type_id IN (" + GenQuestionMarks(len(typeIDs)) + ")"
|
||||
sqlParams = append(sqlParams, typeIDs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user