From 1fbc1c7107776023359a06ef601a9df84aea24bf Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 10 Aug 2022 16:44:49 +0800 Subject: [PATCH] dd --- business/model/dao/dao_auth2.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/model/dao/dao_auth2.go b/business/model/dao/dao_auth2.go index f8f5420ff..f3c99a8e6 100644 --- a/business/model/dao/dao_auth2.go +++ b/business/model/dao/dao_auth2.go @@ -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) }