| | |
| | | if floorBuckets, ok := locationBucket.(map[string]interface{})["floor"].(map[string]interface{})["buckets"].([]interface{}); ok { |
| | | for _, floorBucket := range floorBuckets { |
| | | floor := floorBucket.(map[string]interface{})["key"].(string) |
| | | logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket) |
| | | appearCount := floorBucket.(map[string]interface{})["filter_floor"].(int) |
| | | logger.Debugf("appearCount--------------------------------------- %s- --", appearCount) |
| | | // 构建 LocationRecord 结构体 |
| | | var persons []string |
| | | if docNumBuckets, ok := floorBucket.(map[string]interface{})["document_numbers"].(map[string]interface{})["buckets"].([]interface{}); ok { |
| | |
| | | } |
| | | } |
| | | |
| | | logger.Debugf("floor--------------------------------------- %s-- %s --", floor, appearCount) |
| | | //logger.Debugf("floor--------------------------------------- %s-- %s --", floor, appearCount) |
| | | record := &LocationRecord{ |
| | | //PicDate: timestamp, |
| | | DocumentNumbers: persons, |