jpy
2023-05-27 dc7924a24a630ef9b0ca7cfeaf1249e52736cc4f
screen-api/src/main/java/com/moral/api/service/impl/HistoryFiveMinutelyServiceImpl.java
@@ -2,10 +2,7 @@
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.ISqlSegment;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;
import com.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList;
import com.moral.api.config.mybatis.MybatisPlusConfig;
import com.moral.api.entity.*;
import com.moral.api.mapper.HistoryFiveMinutelyMapper;
@@ -32,8 +29,6 @@
import org.springframework.util.ObjectUtils;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
 * <p>
@@ -305,8 +300,6 @@
        List<Object> list = new ArrayList<>();
        List<Map<String, Object>> mapList = new ArrayList<>();
        for (WindData data : windData) {
            //经度
            Double longitude = data.getLongitude();
            //纬度
@@ -354,24 +347,23 @@
        laLaMap.put("maxLa", lama);
        laLaMap.put("minLa", lami);
        Double lo1 = lomi - length * 0.00001141;
//        Double lo1 = lomi - length * 0.000001141 * 2;
        Double lo2 = loma + length * 0.00001141;
//        Double lo2 = loma + length * 0.000001141 * 2;
//        Double la2 = lami - length * 0.000000899 * 2;
        Double la2 = lami - length * 0.00000899;
//        Double la1 = lama + length * 0.000000899 * 2;
        Double la1 = lama + length * 0.00000899;
        //Double lo1 = lomi - length * 0.00001141;
       Double lo1 = lomi - length * 0.000001141 * 2;
        //Double lo2 = loma + length * 0.00001141;
       Double lo2 = loma + length * 0.000001141 * 2;
       Double la2 = lami - length * 0.000000899 * 2;
        //Double la2 = lami - length * 0.00000899;
        Double la1 = lama + length * 0.000000899 * 2;
        //Double la1 = lama + length * 0.00000899;
        double dx = 0.00001141 * perdlen;
        double dy = 0.00000899 * perdlen;
        //double dx = 0.00001141 * perdlen;
        //double dy = 0.00000899 * perdlen;
//        double dx = 0.000001141 * perdlen * 2;
//        double dy = 0.000000899 * perdlen * 2;
       double dx = 0.000001141 * perdlen * 2;
       double dy = 0.000000899 * perdlen * 2;
        int nx = (int) Math.floor((lo2 - lo1) / dx);
        int ny = (int) Math.floor((la1 - la2) / dy);
        List<Double> uList = new ArrayList<>();
        List<Double> vList = new ArrayList<>();
@@ -489,13 +481,5 @@
        }
        MybatisPlusConfig.tableName.remove();
        return result;
    }
    public static void main(String[] args) {
        ArrayList<Double> objects = new ArrayList<>();
        for (int i = 0; i < 7949760L; i++) {
            objects.add(0.0d);
        }
        System.out.println(objects.size());
    }
}