Browse Source

数据落地代码修改

Kute 1 month ago
parent
commit
afbe1e4519
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ais-tcp/src/main/java/com/shcd/aistcp/util/AisAnalysisUtil.java

+ 2 - 1
ais-tcp/src/main/java/com/shcd/aistcp/util/AisAnalysisUtil.java

@@ -55,10 +55,11 @@ public class AisAnalysisUtil {
             AisAnalyBase analyBase = new AisAnalysisUtil().judgeCRC(msg);
             log.info("解析后:{}",analyBase);
             BoatInfoEntity boatInfoEntity = new BoatInfoEntity();
+            GHAisInfo ghAisInfo = new GHAisInfo();
             if (analyBase.getMmsi() != null){
                 boatInfoEntity.setId(analyBase.getMmsi());
+                ghAisInfo.setDeviCeid(analyBase.getMmsi());
             }
-            GHAisInfo ghAisInfo = new GHAisInfo();
             if (analyBase.getLatitude() != null && analyBase.getLongitude() != null){
                 double[] doubles = XyUtil.gps84_To_SHXY(analyBase.getLongitude(), analyBase.getLatitude());
                 double xPoint = doubles[0];