From d0c51ac702c57f2cae84a8d879a5b605f2dab630 Mon Sep 17 00:00:00 2001
From: weicd <weicd@yhzhg.cn>
Date: Thu, 28 Sep 2023 09:50:45 +0000
Subject: [PATCH] 修改
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
index a085a3f..c04110f 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
@@ -19,6 +19,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
+import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.annotation.Log;
import me.zhengjie.config.RsaProperties;
import me.zhengjie.modules.system.domain.Dept;
@@ -29,6 +30,7 @@
import me.zhengjie.modules.system.service.DeptService;
import me.zhengjie.modules.system.service.RoleService;
import me.zhengjie.modules.system.service.dto.DeptDto;
+import me.zhengjie.modules.system.service.dto.DeptUserNodeDto;
import me.zhengjie.modules.system.service.dto.RoleSmallDto;
import me.zhengjie.modules.system.service.dto.UserDto;
import me.zhengjie.modules.system.service.dto.UserQueryCriteria;
@@ -74,6 +76,12 @@
@PreAuthorize("@el.check('user:download')")
public void exportUser(HttpServletResponse response, UserQueryCriteria criteria) throws IOException {
userService.download(userService.queryAll(criteria), response);
+ }
+
+ @GetMapping(value = "/dept/{deptId}")
+ @AnonymousAccess
+ public ResponseEntity<Object> queryDeptUserByDeptId(@PathVariable Long deptId) {
+ return new ResponseEntity<>(userService.queryDeptUserByDeptId(deptId), HttpStatus.OK);
}
@GetMapping(value = "/all")
@@ -260,4 +268,31 @@
public ResponseEntity<Object> getUserBaseInfo(@PathVariable Date yearMonth) throws ParseException {
return new ResponseEntity<>(userService.getUserBaseInfo(yearMonth), HttpStatus.OK);
}
+
+ @GetMapping("/getProjectUser")
+ public ResponseEntity<Object> getUserByTaskId(String taskId){
+ return new ResponseEntity<>(userService.getUserByTaskId(taskId),HttpStatus.OK);
+ }
+
+
+ @GetMapping("/getUserDept")
+ public ResponseEntity<Object> getAllUserDetail(){
+ return new ResponseEntity<>(userService.getUserDept(),HttpStatus.OK);
+ }
+
+
+ @GetMapping("/getUserPidDept")
+ public ResponseEntity<Object> getUserPidDept(Long[] ids) {
+ List<Long[]> result = new ArrayList<>();
+ for (Long id : ids) {
+ result.add(userService.getUserPidDept(id));
+ }
+ return new ResponseEntity<>(result,HttpStatus.OK);
+ }
+
+ @GetMapping("/getPerformanceDetail")
+ public ResponseEntity<Object> getPerformanceDetail(Long nextMonth) {
+ return new ResponseEntity<>(userService.getPerformanceDetail(nextMonth),HttpStatus.OK);
+
+ }
}
--
Gitblit v1.9.3