diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/ErpVersionController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/ErpVersionController.java new file mode 100644 index 00000000..286bed0e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/ErpVersionController.java @@ -0,0 +1,23 @@ +package com.ruoyi.system.controller; + +import com.ruoyi.common.config.RuoYiConfig; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/system/erpVersion") +public class ErpVersionController { + + + private String prefix = "system/erpVersion"; + + // 系统版本 + @GetMapping("/erpVersion") + public String main(ModelMap mmap) + { + mmap.put("version", RuoYiConfig.getVersion()); + return prefix+ "/erpVersion"; + } +} diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 84a31842..203a1b03 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -1,11 +1,11 @@ # 项目相关配置 ruoyi: # 名称 - name: RuoYi + name: wancaiErp # 版本 - version: 4.6.1 + version: 1.1.1 # 版权年份 - copyrightYear: 2021 + copyrightYear: 2024 # 实例演示开关 demoEnabled: false # 文件路径 示例( Windows配置c:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) diff --git a/ruoyi-admin/src/main/resources/templates/system/erpVersion/erpVersion.html b/ruoyi-admin/src/main/resources/templates/system/erpVersion/erpVersion.html new file mode 100644 index 00000000..8fd2e028 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/erpVersion/erpVersion.html @@ -0,0 +1,93 @@ + + + + + + + 系统版本 + + + + + + + +
+
+

万材ERP系统

+
+

+ 当前版本:v[[${version}]] +

+
+
+
+
+
+
+
+

系统更新日志

+
+
+
+ +
+
+
+
+ v1.1.12024.05.23 +
+
+
+
+
    +
  1. 测试1
  2. +
  3. 测试1
  4. +
  5. 测试1
  6. +
+
+
+
+ +
+
+
+ v1.1.02024.05.23 +
+
+
+
+
    +
  1. 测试2
  2. +
  3. 测试2
  4. +
  5. 测试2
  6. +
  7. 测试2
  8. +
+
+
+
+
+
+
+
+
+
+
+ + + + + +