| | |
| | | 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); |