From fd7b9aabefdcfa4e2f8504c77d5a4e6f4f955585 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Sun, 22 Aug 2021 14:50:28 +0800
Subject: [PATCH] 1.ftp

---
 src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java b/src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java
index 9f206f2..c001c92 100644
--- a/src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java
+++ b/src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java
@@ -57,19 +57,17 @@
 	 */
 	@Override
 	public List<LiveLocationVo> getLiveLocationVoList(LiveLocationVo liveLocationVo) {
-		if (null!=liveLocationVo.getType()){
-			//保安人员
-			if (liveLocationVo.getType()==1){
-				return baseMapper.getSecurityLocusInfoList(liveLocationVo);
-			}
-			//车辆
-			if (liveLocationVo.getType()==1){
-				return baseMapper.getCarLocusInfoList(liveLocationVo);
-			}
-			//枪支
-			if (liveLocationVo.getType()==1){
-				return baseMapper.getGunLocusInfoList(liveLocationVo);
-			}
+		//保安人员
+		if (liveLocationVo.getType()==1){
+			return baseMapper.getSecurityLocusInfoList(liveLocationVo);
+		}
+		//车辆
+		if (liveLocationVo.getType()==2){
+			return baseMapper.getCarLocusInfoList(liveLocationVo);
+		}
+		//枪支
+		if (liveLocationVo.getType()==3){
+			return baseMapper.getGunLocusInfoList(liveLocationVo);
 		}
 		return baseMapper.selectSecurityAndCarAndGunLiveLocationPage(liveLocationVo);
 	}

--
Gitblit v1.9.3