| | |
| | | personIds = append(personIds,v.Id) |
| | | } |
| | | } |
| | | logger.Debug("comp personIds:", personIds) |
| | | logger.Debug("comp captureIds:",captureIds) |
| | | logger.Debug("comp len(personIds):", len(personIds)) |
| | | logger.Debug("comp len(captureIds):", len(captureIds)) |
| | | esServerIp := config.EsInfo.Masterip |
| | | esServerPort := config.EsInfo.Httpport |
| | | index := config.EsInfo.EsIndex.Dbtablepersons.IndexName |
| | |
| | | CameraAddr: vp.CameraAddr, |
| | | PicDate: vp.PicDate, |
| | | PicMaxUrl: vp.PicMaxUrl, |
| | | PicSmUrl: parsePicSmUrl(vp.PicSmUrl), |
| | | PicSmUrl: vp.PicSmUrl, |
| | | IsAlarm: isAlarmInt, |
| | | Sex: vp.Sex, |
| | | AgeDescription: vp.AgeDescription, |
| | |
| | | } |
| | | } |
| | | return resultList |
| | | } |
| | | |
| | | func parsePicSmUrl(picSmUrl string) []string { |
| | | if picSmUrl != ""{ |
| | | return []string{ picSmUrl } |
| | | } |
| | | return []string{} |
| | | } |
| | | |
| | | func parseMonitorLevel(level string) string { |