From 3be9948bd0756e545d27f3b69456f1840fd9febb Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 09:08:30 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/system/controller/UserController.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/crm/system/controller/UserController.java b/src/main/java/com/zy/crm/system/controller/UserController.java
index 94e26b8..1c760a5 100644
--- a/src/main/java/com/zy/crm/system/controller/UserController.java
+++ b/src/main/java/com/zy/crm/system/controller/UserController.java
@@ -69,6 +69,25 @@
         return R.ok(userService.selectPage(new Page<>(curr, limit), wrapper));
     }
 
+    @RequestMapping(value = "/mat/page/auth")
+    @ManagerAuth
+    public R page(@RequestParam(defaultValue = "1")Integer curr,
+                  @RequestParam(defaultValue = "10")Integer limit,
+                  @RequestParam(required = false)String orderByField,
+                  @RequestParam(required = false)String orderByType,
+                  @RequestParam Map<String, Object> param){
+        Object deptId = param.get("dept_id");
+        if (Cools.isEmpty(deptId)) {
+            deptId = getOriginDept().getId();
+        }
+        return R.ok(userService.getPage(new Page<>(curr, limit)
+                , getHostId()
+                , String.valueOf(deptId)
+                , param.get("username")
+                , param.get("mobile"))
+        );
+    }
+
     private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
         for (Map.Entry<String, Object> entry : map.entrySet()){
             String val = String.valueOf(entry.getValue());

--
Gitblit v1.9.1