From cd7767932dddeaf6d9c73a83d4a9b38f0341b77f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 28 一月 2022 12:46:17 +0800 Subject: [PATCH] bug修复 --- src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java b/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java index 3ed11a1..7367090 100644 --- a/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java +++ b/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java @@ -28,9 +28,14 @@ private EHCacheManager ehCacheManager; @RequestMapping("configList") - public void configList(Long detailSystemId, String key, PrintWriter out) { + public void configList(Long detailSystemId, String key, String type, PrintWriter out) { key = StringUtil.isNullOrEmpty(key) ? "" : key.trim(); - List<DetailSystemConfig> list = configService.listConfig(detailSystemId, key); + List<DetailSystemConfig> list = null; + if ("value".equalsIgnoreCase(type)) { + list = configService.listConfigByValue(detailSystemId, key); + } else { + list = configService.listConfig(detailSystemId, key); + } JSONObject json = new JSONObject(); json.put("code", "0"); JSONArray listJson = new JSONArray(list); -- Gitblit v1.8.0