From bc8ca5f34b3c8f163bbfdda49a1b085aa8b4f019 Mon Sep 17 00:00:00 2001
From: Administrator <1144154118@qq.com>
Date: 星期六, 05 八月 2023 10:48:37 +0800
Subject: [PATCH] 巡检人
---
ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatroluserServiceImpl.java | 12 ++++++++++++
ard-work/src/main/java/com/ruoyi/app/patrolplan/service/IArdAppPatroluserService.java | 3 +++
ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolplanController.java | 4 ++--
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolplanController.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolplanController.java
index 1cc805a..b13e2ff 100644
--- a/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolplanController.java
+++ b/ard-work/src/main/java/com/ruoyi/app/patrolplan/controller/ArdAppPatrolplanController.java
@@ -95,13 +95,13 @@
/**
* 鏍规嵁宸℃ID鏌ヨ宸℃浜�
*/
- /*@PreAuthorize("@ss.hasPermi('app:appPatrolplan:userByPlanId')")
+ @PreAuthorize("@ss.hasPermi('app:appPatrolplan:userByPlanId')")
@GetMapping(value = "userByPlanId/{id}")
@ApiOperation("鏍规嵁宸℃ID鏌ヨ宸℃浜�")
public Results userByPlanId(@PathVariable String id)
{
return ardAppPatroluserService.userByPlanId(id);
- }*/
+ }
/**
* 鍒犻櫎app宸℃璁″垝
diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/IArdAppPatroluserService.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/IArdAppPatroluserService.java
index 68ce675..f56f101 100644
--- a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/IArdAppPatroluserService.java
+++ b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/IArdAppPatroluserService.java
@@ -2,6 +2,7 @@
import java.util.List;
import com.ruoyi.app.patrolplan.domain.ArdAppPatroluser;
+import com.ruoyi.utils.result.Results;
/**
* app宸℃璁″垝浜哄憳Service鎺ュ彛
@@ -58,4 +59,6 @@
* @return 缁撴灉
*/
public int deleteArdAppPatroluserById(String id);
+
+ Results userByPlanId(String id);
}
diff --git a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatroluserServiceImpl.java b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatroluserServiceImpl.java
index bd7c0da..44e15bd 100644
--- a/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatroluserServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/app/patrolplan/service/impl/ArdAppPatroluserServiceImpl.java
@@ -2,11 +2,15 @@
import java.util.List;
+import com.ruoyi.system.mapper.SysUserMapper;
+import com.ruoyi.utils.result.Results;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.patrolplan.mapper.ArdAppPatroluserMapper;
import com.ruoyi.app.patrolplan.domain.ArdAppPatroluser;
import com.ruoyi.app.patrolplan.service.IArdAppPatroluserService;
+
+import javax.annotation.Resource;
/**
* app宸℃璁″垝浜哄憳Service涓氬姟灞傚鐞�
@@ -18,6 +22,9 @@
public class ArdAppPatroluserServiceImpl implements IArdAppPatroluserService {
@Autowired
private ArdAppPatroluserMapper ardAppPatroluserMapper;
+
+ @Resource
+ private SysUserMapper sysUserMapper;
/**
* 鏌ヨapp宸℃璁″垝浜哄憳
@@ -84,4 +91,9 @@
public int deleteArdAppPatroluserById(String id) {
return ardAppPatroluserMapper.deleteArdAppPatroluserById(id);
}
+
+ @Override
+ public Results userByPlanId(String id) {
+ return Results.succeed(sysUserMapper.userByPlanId(id));
+ }
}
--
Gitblit v1.9.3