|
@@ -0,0 +1,39 @@
|
|
|
+package cn.hnthyy.thmz.controller;
|
|
|
+
|
|
|
+import cn.hnthyy.thmz.Utils.R;
|
|
|
+import cn.hnthyy.thmz.service.SysParametersService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName SysParametersController
|
|
|
+ * @Author hsh
|
|
|
+ * @Date 2024/1/9 10:09
|
|
|
+ * @Version 1.0
|
|
|
+ * @Description 系统字典
|
|
|
+ **/
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+public class SysParametersController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SysParametersService sysParametersService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @description 根据code获取系统字典值
|
|
|
+ * @author hsh
|
|
|
+ * @param
|
|
|
+ * @return
|
|
|
+ * @Date 2024/1/9 8:49
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getSysParametersByCode", method = {RequestMethod.GET})
|
|
|
+ public R getSysParametersByCode(@RequestParam("code") String code) {
|
|
|
+ String value = sysParametersService.getSysParametersByCode(code);
|
|
|
+ return R.ok().put("data",value);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|