From 74e3003514a88a7bee8664cc357626fb6eed3599 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期五, 14 三月 2025 14:09:23 +0800
Subject: [PATCH] -

---
 billion-main/src/main/java/com/billion/main/da/service/impl/DaStationCollectionServiceImpl.java |    7 +++++++
 billion-main/src/main/java/com/billion/main/da/domain/EngineData.java                           |   14 ++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/billion-main/src/main/java/com/billion/main/da/domain/EngineData.java b/billion-main/src/main/java/com/billion/main/da/domain/EngineData.java
new file mode 100644
index 0000000..b3edeec
--- /dev/null
+++ b/billion-main/src/main/java/com/billion/main/da/domain/EngineData.java
@@ -0,0 +1,14 @@
+package com.billion.main.da.domain;
+
+import lombok.Data;
+
+@Data
+public class EngineData {
+    private String StationName;
+    private String InsertTime;
+    private String EngineType;
+    private String FactoryNumber;
+    private String EngineNumber;
+    private String CycleTime;
+    private Integer Flag;
+}
diff --git a/billion-main/src/main/java/com/billion/main/da/service/impl/DaStationCollectionServiceImpl.java b/billion-main/src/main/java/com/billion/main/da/service/impl/DaStationCollectionServiceImpl.java
index 70ac6a3..f78762a 100644
--- a/billion-main/src/main/java/com/billion/main/da/service/impl/DaStationCollectionServiceImpl.java
+++ b/billion-main/src/main/java/com/billion/main/da/service/impl/DaStationCollectionServiceImpl.java
@@ -1,7 +1,11 @@
 package com.billion.main.da.service.impl;
 
+import cn.hutool.http.HttpUtil;
+import cn.hutool.json.JSONUtil;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.billion.common.utils.http.HttpUtils;
 import com.billion.main.da.domain.DaStationCollection;
+import com.billion.main.da.domain.EngineData;
 import com.billion.main.da.mapper.DaStationCollectionMapper;
 import com.billion.main.da.service.IDaStationCollectionService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -54,6 +58,9 @@
     @Override
     public int insertDaStationCollection(DaStationCollection daStationCollection)
     {
+        EngineData engineData = new EngineData();
+        engineData.setEngineType("1");
+        String s = HttpUtils.sendPost("http://172.40.161.71:8080/prod-api/CollectTrack", JSONUtil.toJsonStr(engineData));
         return daStationCollectionMapper.insertDaStationCollection(daStationCollection);
     }
 

--
Gitblit v1.9.3