From bb36a9a264d971c0a1832e66d4feaf8f6b96dd58 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 27 五月 2022 18:58:16 +0800
Subject: [PATCH] fix
---
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java | 38 ++++++++++++++++++++------------------
1 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java
index 616be99..ec00e81 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/controller/GetListOnBindingController.java
@@ -50,8 +50,8 @@
wrapper.eq(Client::getSuperiorId, SecurityUtils.getUserId());
}
if (!StringUtil.isEmpty(keyword)) {
- wrapper.eq(Client::getId, keyword).or(w -> {
- w.eq(Client::getClientName, keyword);
+ wrapper.like(Client::getId, keyword).or(w -> {
+ w.like(Client::getClientName, keyword);
});
}
List<Client> list = SpringContextHolder.getBean(ClientService.class).list(wrapper);
@@ -74,12 +74,12 @@
private final PoleMapper poleMapper;
@GetMapping("/getPoleList")
- public ResponseVO<Object> getPoleList() {
+ public ResponseVO<Object> getPoleList(@RequestParam(required = false, value = "keyword") String keyword) {
List<Pole> poleList;
if (SecurityUtils.getClientId() == null) {
- poleList = poleMapper.queryPoleOnLineStatesList(null, null, null, null, null, null);
+ poleList = poleMapper.getPoleListOnBinding(null, keyword);
} else {
- poleList = poleMapper.queryPoleOnLineStatesList(SecurityUtils.getUserId(), null, null, null, null, null);
+ poleList = poleMapper.getPoleListOnBinding(SecurityUtils.getUserId(), keyword);
}
List<Map> mapList = new ArrayList<>();
@@ -99,8 +99,8 @@
private final LightMapper lightMapper;
@GetMapping("/getLightList")
- public ResponseVO<Object> getLightList() {
- List<LightBo> listLight = lightMapper.listLight(SecurityUtils.getClientId(), null);
+ public ResponseVO<Object> getLightList(@RequestParam(required = false, value = "keyword") String keyword) {
+ List<LightBo> listLight = lightMapper.listLightOnBinding(SecurityUtils.getClientId(), keyword);
List<Map> mapList = new ArrayList<>();
@@ -120,9 +120,9 @@
* NLED鍒楄〃(璇虹摝璁惧)
*/
@GetMapping("/getLedPlayerEntityList")
- public ResponseVO<Object> getLedPlayerEntityList() {
+ public ResponseVO<Object> getLedPlayerEntityList(@RequestParam(required = false, value = "keyword") String keyword) {
List<LedPlayerEntity> list = SpringContextHolder.getBean(LedPlayerEntityService.class).
- ledPlayerEntityList(null, null, null, null);
+ ledPlayerEntityListOnBinding(keyword);
List<Map> mapList = new ArrayList<>();
Map map;
@@ -145,7 +145,13 @@
*/
@GetMapping("/getLedFilesList")
public ResponseVO<Object> getLedFilesList() {
- List<LedSFile> list = SpringContextHolder.getBean(LedSFileService.class).list();
+ LambdaQueryWrapper<LedSFile> wrapper = Wrappers.lambdaQuery(LedSFile.class);
+ if (SecurityUtils.getClientId() != null) {
+ wrapper.eq(LedSFile::getCilentId, SecurityUtils.getUserId()).or(w -> {
+ w.eq(LedSFile::getUserId, SecurityUtils.getUserId());
+ });
+ }
+ List<LedSFile> list = SpringContextHolder.getBean(LedSFileService.class).list(wrapper);
List<Map> mapList = new ArrayList<>();
Map map;
@@ -168,8 +174,8 @@
private final LEDProgramService ledProgramService;
@GetMapping("/getNledProgeamList")
- public ResponseVO<Object> getNledProgeamList() {
- List<LEDProgram> ledPrograms = ledProgramService.listProgram(null, null, null, null);
+ public ResponseVO<Object> getNledProgeamList(@RequestParam(required = false, value = "keyword") String keyword) {
+ List<LEDProgram> ledPrograms = ledProgramService.listProgramOnBinding(keyword);
List<Map> mapList = new ArrayList<>();
Map map;
for (LEDProgram bean : ledPrograms) {
@@ -190,8 +196,8 @@
private final PoleLightemitService sLedService;
@GetMapping("/getSledList")
- public ResponseVO<Object> getSledList() {
- List<PoleLightemitEntity> poleLightemitEntities = sLedService.listLed(null, null, null, false);
+ public ResponseVO<Object> getSledList(@RequestParam(required = false, value = "keyword") String keyword) {
+ List<PoleLightemitEntity> poleLightemitEntities = sLedService.listLedOnBinding(keyword);
List<Map> mapList = new ArrayList<>();
Map map;
for (PoleLightemitEntity bean : poleLightemitEntities) {
@@ -245,10 +251,6 @@
@GetMapping("/getIpVolumeList")
public ResponseVO<Object> getIpVolumeList(@RequestParam(required = false, value = "keyword") String keyword) {
- BroadcastTerminalV2Param param = new BroadcastTerminalV2Param();
- param.setBindingState(2);
- param.setKeyword(null);
- param.setWorkState(2);
List<BroadcastTerminalV2EntityBo> broadcastTerminalList = ipVolumeService.newIpTerminalList(keyword);
List<Map> mapList = new ArrayList<>();
Map map;
--
Gitblit v1.9.3