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