xiangpei
2024-08-02 1fc5877f61c9b15f5daa5f328f9deae2e8a50e84
ycl-server/src/main/java/com/ycl/calculate/CarDataIntegrityCalculation.java
@@ -79,7 +79,9 @@
        areaStatsMap.forEach((deptId, stats) -> {
            if (stats.totalSites > 0) {
                CheckIndexCar checkIndexCar = createOrUpdateCheckIndexCar(deptId, stats, checkIndexCarList);
                checkIndexCars.add(checkIndexCar);
                if (checkIndexCar != null) {
                    checkIndexCars.add(checkIndexCar);
                }
            }
        });
@@ -94,13 +96,13 @@
        AreaStats stats = areaStatsMap.computeIfAbsent(key, k -> new AreaStats());
        stats.totalSites++;
        //90%及以上数据合格则此车辆卡口设备被视为抓拍数据完整
        if(result.getMainNoIntegrityPercent() <= 0.1){
        if (result.getMainNoIntegrityPercent() <= 0.1) {
            stats.integritySites++;
        }
        //重点点位为六项属性
        if(importantIds.contains(key)){
        if (importantIds.contains(key)) {
            stats.importantTotalSites++;
            if(result.getNoIntegrityPercent() <= 0.1){
            if (result.getNoIntegrityPercent() <= 0.1) {
                stats.importantIntegritySites++;
            }
        }
@@ -110,7 +112,10 @@
     * 车辆信息采集正确率
     */
    private CheckIndexCar createOrUpdateCheckIndexCar(String key, AreaStats stats, List<CheckIndexCar> checkIndexCarList) {
        CheckIndexCar checkIndexCar = getCheckIndex(key, checkIndexCarList);
        CheckIndexCar checkIndexCar = getCheckIndex(key, checkIndexCarList, CheckIndexCar.class);
        if (checkIndexCar == null) {
            return null;
        }
        //调用计算方法
        Map<String, Object> param = new HashMap<>();
        param.put("totalSites", stats.totalSites);