|
@@ -352,13 +352,10 @@ func (this *Analysis) HotWinnerTop() {
|
|
|
}(v.Key)
|
|
|
}
|
|
|
sy.Wait()
|
|
|
- rMaps := make(map[string]interface{})
|
|
|
- rMap.Range(func(key, value interface{}) bool {
|
|
|
- rMaps[qutil.InterfaceToStr(key)] = value
|
|
|
- return true
|
|
|
- })
|
|
|
for _, v := range winnerAmount {
|
|
|
- v.Doc_count = qutil.Float64All(rMaps[v.Key])
|
|
|
+ if v1, ok := rMap.Load(v.Key); ok {
|
|
|
+ v.Doc_count = qutil.Float64All(v1)
|
|
|
+ }
|
|
|
}
|
|
|
sortkey := "total_project" //默认金额
|
|
|
if getRes.HotWinnerType == 0 {
|