|
@@ -38,7 +38,6 @@ import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.validation.BindingResult;
|
|
import org.springframework.validation.BindingResult;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -117,9 +116,6 @@ public class SysController {
|
|
@Resource
|
|
@Resource
|
|
ConditionService conditionService;
|
|
ConditionService conditionService;
|
|
|
|
|
|
- @Value(value = "${app.version}")
|
|
|
|
- private String version;
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 登录
|
|
* 登录
|
|
*
|
|
*
|
|
@@ -427,9 +423,6 @@ public class SysController {
|
|
return ResultUtil.ok(userLoginCheckResult, "");
|
|
return ResultUtil.ok(userLoginCheckResult, "");
|
|
}
|
|
}
|
|
|
|
|
|
-// @Resource
|
|
|
|
-// private Environment env;
|
|
|
|
-
|
|
|
|
@ApiOperation(value = "根据机构代码查询机构信息接口")
|
|
@ApiOperation(value = "根据机构代码查询机构信息接口")
|
|
@RequestMapping(value = "/school/query_by_school_code", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/school/query_by_school_code", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "学校信息", response = EditResult.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "学校信息", response = EditResult.class)})
|
|
@@ -438,25 +431,8 @@ public class SysController {
|
|
if (Objects.nonNull(code) && code.contains("#")) {
|
|
if (Objects.nonNull(code) && code.contains("#")) {
|
|
code = code.substring(0, code.indexOf("#"));
|
|
code = code.substring(0, code.indexOf("#"));
|
|
}
|
|
}
|
|
-// 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<String, Object> map = new HashMap<>();
|
|
- map.put(SystemConstant.VERSION, version);
|
|
|
|
|
|
+ map.put(SystemConstant.VERSION, SystemConstant.VERSION_VALUE);
|
|
if (!code.equalsIgnoreCase(SystemConstant.ADMIN_CODE)) {
|
|
if (!code.equalsIgnoreCase(SystemConstant.ADMIN_CODE)) {
|
|
BasicSchool basicSchool = commonCacheService.schoolCache(code);
|
|
BasicSchool basicSchool = commonCacheService.schoolCache(code);
|
|
Optional.ofNullable(basicSchool).orElseThrow(() -> ExceptionResultEnum.SCHOOL_NO_DATA.exception());
|
|
Optional.ofNullable(basicSchool).orElseThrow(() -> ExceptionResultEnum.SCHOOL_NO_DATA.exception());
|