liujc 2 mesiacov pred
rodič
commit
119663d46b

+ 12 - 4
cooleshow-app/src/main/java/com/yonge/cooleshow/admin/controller/SysConfigController.java

@@ -17,10 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 
 /** 
  * 系统配置控制层
@@ -106,6 +103,17 @@ public class SysConfigController extends BaseController {
 		return succeed(sysConfigService.findConfigValue(paramName));
 	}
 
+
+    @ApiOperation(value = "查询参数")
+    @GetMapping(value = "queryByParamNameList")
+    public Object queryByParamNameList(String paramNames) {
+        if(StringUtils.isBlank(paramNames)){
+            return failed("参数不能为空");
+        }
+        List<String> paramNameList = Arrays.asList(paramNames.split(","));
+        return succeed(sysConfigService.findByParamName(paramNameList));
+    }
+
 	@ApiOperation(value = "url短链接")
 	@PostMapping("shortURL")
 	public HttpResponseResult<String> shortURL(String orginURL) {