From 5e4c0666f6d0d91cc4cf2263e42c7f06505625c7 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期六, 21 十月 2023 15:26:29 +0800
Subject: [PATCH] 入栏
---
ard-work/src/main/java/com/ruoyi/sy/gps31/PushClientImplPosition.java | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/gps31/PushClientImplPosition.java b/ard-work/src/main/java/com/ruoyi/sy/gps31/PushClientImplPosition.java
index cf6e07b..0e0a1c5 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/gps31/PushClientImplPosition.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/gps31/PushClientImplPosition.java
@@ -13,9 +13,12 @@
import com.gps31.push.netty.client.TcpClient;
import com.gps31.push.util.MapUtil;
import com.ruoyi.common.utils.spring.SpringUtils;
+import com.ruoyi.sy.domain.ArdAccessFence;
import com.ruoyi.sy.domain.ArdOilWall;
+import com.ruoyi.sy.domain.ArdSyCarLock;
import com.ruoyi.sy.service.impl.ArdOilWallServiceImpl;
import com.ruoyi.sy.service.impl.ArdSyCarDayServiceImpl;
+import com.ruoyi.sy.service.impl.ArdSyCarLockServiceImpl;
import com.ruoyi.sy.service.impl.ArdSyCarServiceImpl;
import com.ruoyi.utils.gps.GeoTools;
import org.apache.commons.logging.Log;
@@ -101,7 +104,16 @@
}
if(GeoTools.IsPtInPoly(point, pts)){
//杩涘叆浜嗗洿鏍忓叆搴�
-
+ ArdAccessFence ardAccessFence = new ArdAccessFence();
+ ardAccessFence.setId(String.valueOf(UUID.randomUUID()));
+ ardAccessFence.setCarId(carId);
+ ardAccessFence.setCarName(carName);
+ ardAccessFence.setDeptId(deptNum);
+ ardAccessFence.setDeptName(deptName);
+ ardAccessFence.setTime(time);
+ ardAccessFence.setLng(lng);
+ ardAccessFence.setLat(lat);
+ ((ArdSyCarLockServiceImpl)SpringUtils.getBean("ArdSyCarLockServiceImpl")).access(ardAccessFence);
}
}
gpsMap.putAll(result);
--
Gitblit v1.9.3