Jianghan 2 年 前
コミット
da8925b5e5
2 ファイル変更0 行追加2 行削除
  1. 0 1
      elastic/elasticSim.go
  2. 0 1
      mysqldb/mysql.go

+ 0 - 1
elastic/elasticSim.go

@@ -220,7 +220,6 @@ func (e *Elastic) GetNoLimit(index, query string) *[]map[string]interface{} {
 
 		if searchResult.Hits != nil {
 			resNum := len(searchResult.Hits.Hits)
-			util.Debug(resNum)
 			res = make([]map[string]interface{}, resNum)
 			for i, hit := range searchResult.Hits.Hits {
 				json.Unmarshal(hit.Source, &res[i])

+ 0 - 1
mysqldb/mysql.go

@@ -476,7 +476,6 @@ func (m *Mysql) Count(tableName string, query map[string]interface{}) int64 {
 	if len(query) > 0 {
 		q += fmt.Sprintf(" where %s", strings.Join(fields, " and "))
 	}
-	log.Println(q, values)
 	return m.CountBySql(q, values...)
 }
 func (m *Mysql) CountBySql(q string, args ...interface{}) int64 {