sunsheng 1 жил өмнө
parent
commit
ecbbd85ecf
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/api/statistics.go

+ 1 - 0
src/api/statistics.go

@@ -317,6 +317,7 @@ func StatisticsExeamTFRate(c *gin.Context, apictx *ApiSession) (interface{}, err
 		// 筛选出特定时间范围的记录
 		{
 			{Key: "$match", Value: bson.D{
+				{Key: "uid", Value: uid},
 				{Key: "createTime", Value: bson.D{
 					{Key: "$gte", Value: time.Date(year, time.January, 1, 0, 0, 0, 0, chinaTimeZone)},
 					{Key: "$lt", Value: time.Date(year+1, time.January, 1, 0, 0, 0, 0, chinaTimeZone)},