| | |
| | | "updateTime", |
| | | "picMaxUrl", |
| | | "targetInfo.belongsTargetId", |
| | | "targetInfo.targetLocation" |
| | | "targetInfo.targetLocation", |
| | | "picWH" |
| | | ] |
| | | } |
| | | }` |
| | |
| | | } |
| | | ], |
| | | "_source":{ |
| | | "includes":["baseInfo.targetId","cameraId","cameraName","cameraAddr","targetInfo.targetScore","targetInfo.picSmUrl","showLabels","baseInfo.tableId","baseInfo.tableName","baseInfo.bwType","baseInfo.targetName","baseInfo.compareScore","picDate","picMaxUrl"] |
| | | "includes":["baseInfo.targetId","cameraId","cameraName","cameraAddr","targetInfo.targetScore","targetInfo.picSmUrl","showLabels","baseInfo.tableId","baseInfo.tableName","baseInfo.bwType","baseInfo.targetName","baseInfo.compareScore","picDate","picMaxUrl","picWH"] |
| | | } |
| | | } |
| | | } |
| | |
| | | if startTime != "" { |
| | | sinTime, _ := time.ParseInLocation("2006-01-02 15:04:05", startTime, loc) |
| | | stayTime = math.Abs(sinTime.Sub(mTime).Seconds()) |
| | | if stayTime <= thresholdTime { |
| | | if stayTime <= thresholdTime { |
| | | startTime = tmpTime |
| | | hitsSources[len(hitsSources)-1]["endTime"] = tmpTime |
| | | continue |
| | |
| | | tmpHitSource["stayTime"] = stayTime |
| | | tmpHitSource["endTBackGroundPicUrl"] = source["picMaxUrl"].([]interface{}) |
| | | tmpHitSource["endTFacePicUrl"] = targetInfo["picSmUrl"].(string) |
| | | tmpHitSource["picWH"] = source["picWH"].(map[string]interface{}) |
| | | hitsSources = append(hitsSources, tmpHitSource) |
| | | } |
| | | allSource = append(allSource, hitsSources...) |
| | |
| | | stayTime := endT.Sub(startT).Seconds() |
| | | source["stayTime"] = stayTime |
| | | source["endBackGroundPicUrl"] = pixMaxUrl[len(pixMaxUrl)-1] |
| | | if info["picWH"] != nil { |
| | | source["picWH"] = info["picWH"].(map[string]interface{}) |
| | | } |
| | | sources = append(sources, source) |
| | | } |
| | | |