于紫祥_1901
2020-08-13 72bfd6cfe47b48a183ea3795054dabdcffb543d7
风场图update
3 files modified
8 ■■■■■ changed files
src/main/java/com/moral/mapper/DeviceMapper.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/moral/service/impl/DeviceServiceImpl.java 5 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/DeviceMapper.xml 1 ●●●● patch | view | raw | blame | history
src/main/java/com/moral/mapper/DeviceMapper.java
@@ -65,7 +65,7 @@
    DeviceAndWind getDeviceAndWindByMac(@Param("mac") String mac,@Param("time") String time,
                                        @Param("table") String table);
    List<DeviceAndWind> byMonitorIdGetDeviceAndWind(@Param("id") String id,@Param("time") String time,
    List<DeviceAndWind> byMonitorIdGetDeviceAndWind(@Param("id") int id,@Param("time") String time,
                                                    @Param("table") String table);
    List<Device> getDeviceListByMonitorPointIds(List<Integer> list);
src/main/java/com/moral/service/impl/DeviceServiceImpl.java
@@ -720,11 +720,14 @@
    @Override
    public List byMonitorIdGetDeviceAndWind(String id,String time,String tab) {
        List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(id,time,tab);
        List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(Integer.parseInt(id),time,tab);
        List loList=new ArrayList();
        List laList=new ArrayList();
        Double U=0.0;
        Double V=0.0;
        log.info("id="+id);
        log.info("time="+time);
        log.info("tab="+tab);
        log.info("deviceAndWinds="+deviceAndWinds);
        for (DeviceAndWind andWind : deviceAndWinds) {
            Double lo=andWind.getLongitude();
src/main/resources/mapper/DeviceMapper.xml
@@ -390,7 +390,6 @@
                        and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id})
    </select>
    <select id="getDevicesStateByRegion" resultType="map">
        SELECT
        d.id deviceId,d.mac,d.state,d.name deviceName,