WH01243 vor 2 Jahren
Ursprung
Commit
0f5a25104e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      jyBXSubscribe/rpc/model/push.go

+ 2 - 2
jyBXSubscribe/rpc/model/push.go

@@ -539,8 +539,8 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 			" order by a.id desc", aboutDbMsg[s.ModuleFlag].MysqlTable, Baseinfo, userStr, leftJoinStr, strings.Join(querys, " and "))
 		logx.Info("searchSql", searchSql)
 		//查询总数
-		logx.Info(fmt.Sprintf("select  /*+ HASH_JOIN(a,b)*/ count(a.id) " + searchSql))
-		count = spqp.BaseServiceMysql.CountBySql(fmt.Sprintf("select  /*+ HASH_JOIN(a,b)*/ count(a.id) " + searchSql))
+		logx.Info(fmt.Sprintf("select   count(a.id) " + searchSql))
+		count = spqp.BaseServiceMysql.CountBySql(fmt.Sprintf("select   count(a.id) " + searchSql))
 		start2 = time.Now().Unix()
 		logx.Info("count:", count, "---", s.ModuleFlag)
 		log.Println("查询数据总数用时", start2-start)