GetAllLocalVideopersonsId add alarmLevelTypes
| | |
| | | } |
| | | |
| | | //获取当前节点抓拍库所有人员ID |
| | | func GetAllLocalVideopersonsId(compareArgs protomsg.CompareArgs, indexName string, serverIp string, serverPort string) (capturetable []string) { |
| | | func GetAllLocalVideopersonsId(compareArgs protomsg.CompareArgs, indexName string, serverIp string, serverPort string, alarmLevelTypes string) (capturetable []string) { |
| | | queryStr := "" |
| | | queryBody := compareArgs.InputValue |
| | | //检索框 |
| | |
| | | isCollectStr = "{\"term\":{\"isCollect\":\"" + isCollect + "\"}}," |
| | | } |
| | | |
| | | //判断布防等级 |
| | | alarmLevelStr := "" |
| | | if alarmLevelTypes !="" { |
| | | alarmLevelStr = "{\"terms\":{\"alarmRules.alarmLevel\":[\"" + alarmLevelTypes + "\"]}}," |
| | | } |
| | | |
| | | //使用es底层机制处理分页 |
| | | |
| | | analyServerFilterStr := "" |
| | |
| | | "\"query\":{\"bool\":{" + queryStr + |
| | | "\"filter\":[" + |
| | | cameraIdStr + |
| | | alarmLevelStr + |
| | | taskIdStr + |
| | | isCollectStr + |
| | | esTableIdStr + |