From 4ecf2dbe2c255c3b556ff4bfb49b4e2e8285bd17 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 31 Aug 2021 11:24:45 +0800
Subject: [PATCH] 1.ftp
---
src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 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 af7be3b..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
@@ -45,6 +45,7 @@
*/
@Override
public List<LocusVo> getLocusInfoList(LiveLocationVo liveLocationVo) {
+
return baseMapper.getLocusInfoList(liveLocationVo);
}
@@ -56,7 +57,19 @@
*/
@Override
public List<LiveLocationVo> getLiveLocationVoList(LiveLocationVo liveLocationVo) {
- return baseMapper.selectLiveLocationPage(null,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