From 423b61bfb18ceab430303bada28f93631f0e8392 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 12 八月 2022 16:05:17 +0800
Subject: [PATCH] 充电桩

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/controller/ClientController.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/ClientController.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/ClientController.java
index 435c95c..e520e3a 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/ClientController.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/ClientController.java
@@ -157,7 +157,7 @@
                     .or(w2 -> w2.like(Client::getLinkMan, keyword));
         }
         //鎺掑簭瀛楁
-        String orderByResult = OrderByEnums.CLIENT_CREATE_TIME.getCode();
+        String orderByResult = "id";
         //姝e簭銆佸�掑彊
         String orderBySeq = OrderByEnums.ASC.getCode();
         if (order != null) {
@@ -183,7 +183,9 @@
         //鎺掑簭鏂瑰紡
         String orderBy = orderByResult + " " + orderBySeq;
 
-        PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy);
+        if (baseConditionVO != null) {
+            PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy);
+        }
         List<Client> clientList = clientService.list(wrapper);
 
         List<ClientDto> clientDtoList = new ArrayList<>();
@@ -258,4 +260,11 @@
         StoreOperationRecordsUtils.storeOperationLoginData(client.getId(), client.getClientName(), "鐢ㄦ埛鐧诲綍", content);
         return ResponseUtil.success(authInfo);
     }
+
+    @AnonymousAccess
+    @GetMapping("/getTokenByKey")
+    public ResponseVO<Object> getLonginKey(@RequestParam(required = false, value = "keyValue") String keyValue) {
+
+        return ResponseUtil.success(clientService.creatKeyByLogin(keyValue));
+    }
 }

--
Gitblit v1.9.3