| | |
| | | // 添加固定条件 |
| | | criteriaList.add(Criteria.where("monitorType").regex(".*" + CheckConstants.Rule_Category_Video + ".*")); |
| | | criteriaList.add(Criteria.where("mongoCreateTime").gte(params.getStartTime()).lte(params.getEndTime())); |
| | | criteriaList.add(Criteria.where("deptTag").is(Boolean.TRUE)); |
| | | // 根据dataType动态添加条件 |
| | | if (params.getDataType() == 1) { |
| | | criteriaList.add(Criteria.where("provinceTag").is(Boolean.TRUE)); |
| | |
| | | Document errorFilter = new Document("$or", errorConditions); |
| | | dList2.add(errorFilter); |
| | | Document osdErrorFilter = new Document("$and", dList2); |
| | | //TODO:未知数 新增0的状态 |
| | | //未知数 |
| | | List<Document> dList3 = new ArrayList<>(2); |
| | | setTag(params,dList3); |
| | | dList3.add(importantTagCondition); |
| | |
| | | Document errorFilter = new Document("$or", errorConditions); |
| | | dList2.add(errorFilter); |
| | | Document osdErrorFilter = new Document("$and", dList2); |
| | | //TODO:未知数 新增0的状态 |
| | | //未知数 |
| | | List<Document> dList3 = new ArrayList<>(2); |
| | | setTag(params,dList3); |
| | | dList3.add(importantTagCondition); |