zhangnaisong
2024-07-22 c3ec70d2bd1ebd2421d2fa3e85c1ac43e2322ea6
ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java
@@ -136,9 +136,10 @@
            jsonObject.put(sysConfig.getConfigKey(),sysConfig.getConfigValue());
        }
        //记录well表中oil_production为抽油机的数据有多少条
        QueryWrapper<ArdAlarmpointsWell> queryWrapperWell = new QueryWrapper<>();
        queryWrapperWell.eq("oil_production","抽油机");
        int num = wellMapper.selectCount(queryWrapperWell);
//        QueryWrapper<ArdAlarmpointsWell> queryWrapperWell = new QueryWrapper<>();
//        queryWrapperWell.eq("oil_production","抽油机");
//        queryWrapperWell.eq("well_type","1");
        int num = wellMapper.selectCount(null);
        jsonObject.put("well",String.valueOf(num));
        return Results.succeed(jsonObject);
    }
@@ -279,7 +280,7 @@
    public UnitVo unit() {
        UnitVo unitVo = new UnitVo();
        QueryWrapper<ArdEquipRadar> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("state",1);
        queryWrapper.eq("state","1");
        List<ArdEquipRadar> radarList = radarMapper.selectList(queryWrapper);
        unitVo.setRadar(radarList.size());
        QueryWrapper<ArdCameras> queryWrapperC = new QueryWrapper<>();