fuliqi
2024-09-24 86d0558a3b81c12d03a2d90113490e7c5e147c54
ycl-server/src/main/java/com/ycl/platform/service/impl/DataCenterServiceImpl.java
@@ -578,6 +578,8 @@
            dList.add(new Document("recordStatus", new Document("$eq", item)));
            if (params.getDataType().equals(1)) {
                dList.add(new Document("provinceTag", new Document("$eq", Boolean.TRUE)));
            }else if(params.getDataType().equals(2)){
                dList.add(new Document("deptTag", new Document("$eq", Boolean.TRUE)));
            }
            Document filter = new Document("$and", dList);
            // 构建聚合管道
@@ -594,7 +596,7 @@
                uniqueDeviceIdCount = doc.getInteger("uniqueDeviceIds");
                break; // 不需要继续遍历,因为 $count 只会产生一个结果
            }
            return uniqueDeviceIdCount + "%";
            return uniqueDeviceIdCount + "";
        }).collect(Collectors.toList());
        Date now = new Date();