diff --git a/zc-business/src/main/java/com/zc/business/domain/DcTollStationStatisticsDataMap.java b/zc-business/src/main/java/com/zc/business/domain/DcTollStationStatisticsDataMap.java new file mode 100644 index 00000000..efb16b76 --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/domain/DcTollStationStatisticsDataMap.java @@ -0,0 +1,19 @@ +package com.zc.business.domain; + +import lombok.Data; + +/** + * + */ +@Data +public class DcTollStationStatisticsDataMap { + private String tollStationCode; + private String stakMark; + private String statisticalDate; + private String facilityName; + private String id; + private Integer trafficVolume; + private Integer accessType; + private Integer periodType; + +} diff --git a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java index c8a93042..50ce257c 100644 --- a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java +++ b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java @@ -619,7 +619,7 @@ if (meteorologicalDetectorData.getPrecipitationType().equals("1")){ String string = object.toString(); DcWarning dcWarning = new DcWarning(); - dcWarning.setStakeMark(meteorologicalDetectorData.getStakeMark()); + dcWarning.setStakeMark(stakeMark); dcWarning.setWarningSource(7);//气象检测器 dcWarning.setOtherConfig(string); @@ -630,6 +630,7 @@ if (meteorologicalDetectorData.getPrecipitationType().equals("1")){ if (direction.equals("济南方向")){ dcWarning.setDirection("3"); } + dcWarningService.insertDcWarning(dcWarning); //待确认数量 @@ -654,7 +655,7 @@ if (meteorologicalDetectorData.getPrecipitationType().equals("1")){ object.put("meteorologicalDetectorData", meteorologicalDetectorData); String string = object.toString(); DcWarning dcWarning = new DcWarning(); - dcWarning.setStakeMark(meteorologicalDetectorData.getStakeMark()); + dcWarning.setStakeMark(stakeMark); dcWarning.setWarningSource(7);//气象检测器 dcWarning.setOtherConfig(string); dcWarning.setWarningTitle("气象预警"); diff --git a/zc-business/src/main/resources/mapper/business/DcTollStationStatisticsDataMapper.xml b/zc-business/src/main/resources/mapper/business/DcTollStationStatisticsDataMapper.xml index 01270cc0..b6c8fe35 100644 --- a/zc-business/src/main/resources/mapper/business/DcTollStationStatisticsDataMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcTollStationStatisticsDataMapper.xml @@ -3,14 +3,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + - - - - - + + + + + + @@ -100,26 +101,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - +