|
@@ -427,6 +427,9 @@ public class SysController {
|
|
|
return ResultUtil.ok(userLoginCheckResult, "");
|
|
|
}
|
|
|
|
|
|
+// @Resource
|
|
|
+// private Environment env;
|
|
|
+
|
|
|
@ApiOperation(value = "根据机构代码查询机构信息接口")
|
|
|
@RequestMapping(value = "/school/query_by_school_code", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "学校信息", response = EditResult.class)})
|
|
@@ -435,7 +438,23 @@ public class SysController {
|
|
|
if (Objects.nonNull(code) && code.contains("#")) {
|
|
|
code = code.substring(0, code.indexOf("#"));
|
|
|
}
|
|
|
-// String version = SystemConstant.getVersion();
|
|
|
+// String jdbcUrl = env.getProperty("app1.version");
|
|
|
+// String[] strs = env.getActiveProfiles();
|
|
|
+// String version1 = this.getClass().getPackage().getImplementationVersion();
|
|
|
+// String version = Application.class.getPackage().getImplementationVersion();
|
|
|
+// Enumeration<URL> urls = null;
|
|
|
+// try {
|
|
|
+// //假设读取META-INF/MANIFEST.MF文件
|
|
|
+// urls = SpringContextHolder.class.getClassLoader().getResources("META-INF/MANIFEST.MF");
|
|
|
+// int i = 1;
|
|
|
+// while (urls.hasMoreElements()) {
|
|
|
+// URL url = urls.nextElement();
|
|
|
+// log.info("===={}, {}", i++, url.getPath());
|
|
|
+// }
|
|
|
+// } catch (IOException e) {
|
|
|
+// log.error(e.getMessage());
|
|
|
+// }
|
|
|
+ String version2 = SystemConstant.getVersion();
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put(SystemConstant.VERSION, version);
|
|
|
if (!code.equalsIgnoreCase(SystemConstant.ADMIN_CODE)) {
|