From c4f861c34eb69a6bb4dcb9c2b7949d01efd7913a Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Thu, 09 Jun 2022 23:24:13 +0800
Subject: [PATCH] 保安员新增保安证编号不符时修改状态

---
 src/main/java/org/springblade/modules/electronrail/service/impl/ElectronRailServiceImpl.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/electronrail/service/impl/ElectronRailServiceImpl.java b/src/main/java/org/springblade/modules/electronrail/service/impl/ElectronRailServiceImpl.java
index a2687bf..a08b274 100644
--- a/src/main/java/org/springblade/modules/electronrail/service/impl/ElectronRailServiceImpl.java
+++ b/src/main/java/org/springblade/modules/electronrail/service/impl/ElectronRailServiceImpl.java
@@ -62,4 +62,38 @@
 		}
 		return page.setRecords(railVOS);
 	}
+
+	/**
+	 * 自定义新增电子围栏信息
+	 * @param electronRail
+	 * @return
+	 */
+	@Override
+	public boolean saveElectRailInfo(ElectronRail electronRail) {
+		return baseMapper.saveElectRailInfo(electronRail);
+	}
+
+	/**
+	 * 自定义修改电子围栏信息
+	 * @param electronRail
+	 * @return
+	 */
+	@Override
+	public boolean updateElectronRailInfo(ElectronRail electronRail) {
+		return baseMapper.updateElectronRailInfo(electronRail);
+	}
+
+	/**
+	 * 判断一个点是否在区域内
+	 * @param electronRail
+	 * @return
+	 */
+	@Override
+	public boolean isOnArea(ElectronRailVO electronRail) {
+		int i = baseMapper.isOnArea(electronRail);
+		if (i>0){
+			return true;
+		}
+		return false;
+	}
 }

--
Gitblit v1.9.3