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