‘liusuyi’
2023-09-27 a346e2af25169c885c634edc6b9fa619053a50b7
ard-work/src/main/java/com/ruoyi/alarmpoints/well/service/impl/ArdAlarmpointsWellServiceImpl.java
@@ -296,12 +296,14 @@
    }
    @Override
    public List<ArdAlarmpointsWell> getNearbyWellList(ArdAlarmpointsWell ardAlarmpointsWell, Integer range) {
    public List<ArdAlarmpointsWell> getNearbyWellList(Double[] position, Long deptId, Integer range) {
        List<ArdAlarmpointsWell> nearbyWellList = new ArrayList<>();
        try {
            Double longitudeCenter = ardAlarmpointsWell.getLongitude();
            Double latitudeCenter = ardAlarmpointsWell.getLatitude();
            Double longitudeCenter = position[0];
            Double latitudeCenter = position[1];
            if (longitudeCenter != null && latitudeCenter != null) {
                ArdAlarmpointsWell ardAlarmpointsWell=new ArdAlarmpointsWell();
                ardAlarmpointsWell.setDeptId(deptId);
                List<ArdAlarmpointsWell> ardAlarmpointsWells = ardAlarmpointsWellMapper.selectArdAlarmpointsWellList(ardAlarmpointsWell);
                if (ardAlarmpointsWells.size() > 0) {
                    for (ArdAlarmpointsWell well : ardAlarmpointsWells) {