Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1
zouap 4 years ago
parent
commit
bb5fae78e3
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      models/user_business_analysis.go

+ 4
- 4
models/user_business_analysis.go View File

@@ -159,10 +159,10 @@ func QueryUserStaticDataPage(opts *UserBusinessAnalysisQueryOptions) ([]*UserBus
)
}
cond = cond.And(
builder.Gte{"count_date": fmt.Sprint(pageStartTime)},
builder.Gte{"count_date": pageStartTime.Unix()},
)
cond = cond.And(
builder.Lte{"count_date": fmt.Sprint(pageEndTime)},
builder.Lte{"count_date": pageEndTime.Unix()},
)

count, err := statictisSess.Where(cond).Count(new(UserBusinessAnalysis))
@@ -202,10 +202,10 @@ func QueryUserStaticDataPage(opts *UserBusinessAnalysisQueryOptions) ([]*UserBus
newOrCond,
)
newAndCond = newAndCond.And(
builder.Gte{"count_date": fmt.Sprint(opts.StartTime)},
builder.Gte{"count_date": opts.StartTime},
)
newAndCond = newAndCond.And(
builder.Lte{"count_date": fmt.Sprint(opts.EndTime)},
builder.Lte{"count_date": opts.EndTime},
)

userBusinessAnalysisList = make([]*UserBusinessAnalysis, 0)


Loading…
Cancel
Save