|
|
@@ -0,0 +1,26 @@
|
|
|
+package com.jeesite.modules.mes.web;
|
|
|
+
|
|
|
+import com.jeesite.common.config.Global;
|
|
|
+import com.jeesite.common.web.BaseController;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+
|
|
|
+@Controller
|
|
|
+@RequestMapping(value = "${adminPath}/mes/configParams")
|
|
|
+public class MesSystemConfigParamsController extends BaseController {
|
|
|
+
|
|
|
+ @PostMapping("/info")
|
|
|
+ @ResponseBody
|
|
|
+ public String getValueByKey(@RequestParam(value = "key", required = false) String key) {
|
|
|
+ if(key == null || key.isEmpty()){
|
|
|
+ return "illegalKey";
|
|
|
+ }
|
|
|
+
|
|
|
+ String value = Global.getConfig(key);
|
|
|
+
|
|
|
+ return value == null ? "" : value;
|
|
|
+ }
|
|
|
+}
|