|
@@ -38,6 +38,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -116,6 +117,9 @@ public class SysController {
|
|
|
@Resource
|
|
|
ConditionService conditionService;
|
|
|
|
|
|
+ @Value(value = "${app.version}")
|
|
|
+ private String version;
|
|
|
+
|
|
|
/**
|
|
|
* 登录
|
|
|
*
|
|
@@ -431,7 +435,7 @@ public class SysController {
|
|
|
if (Objects.nonNull(code) && code.contains("#")) {
|
|
|
code = code.substring(0, code.indexOf("#"));
|
|
|
}
|
|
|
- String version = SystemConstant.getVersion();
|
|
|
+// String version = SystemConstant.getVersion();
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put(SystemConstant.VERSION, version);
|
|
|
if (!code.equalsIgnoreCase(SystemConstant.ADMIN_CODE)) {
|