Commit 1c036f4c authored by licc's avatar licc

修改专业获取

parent 0ec5d3f3
...@@ -113,8 +113,8 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess ...@@ -113,8 +113,8 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess
} }
//本科类比文化分 = 本年录取分 -去年录取分 + 考生分数 //本科类比文化分 = 本年录取分 -去年录取分 + 考生分数
double firstCulture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade(); double culture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade();
if (scoreInfo.getCultureGrade() >= firstCulture) { if (culture >= firstRule.getCultureMin()) {
return SchemeTypeEnums.UNDERGRADUATE_CULTURE.getCode(); return SchemeTypeEnums.UNDERGRADUATE_CULTURE.getCode();
} }
...@@ -130,10 +130,10 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess ...@@ -130,10 +130,10 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess
} }
//专科类比分 = 本年录取分 -去年录取分 + 考生分数 //专科类比分 = 本年录取分 -去年录取分 + 考生分数
double firstCulture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade(); double trueCulture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade();
double firstMajor = firstRule.getCurrentYearMajor() - firstRule.getProfessionMin() + scoreInfo.getMajorGrade(); double trueMajor = firstRule.getCurrentYearMajor() - firstRule.getProfessionMin() + scoreInfo.getMajorGrade();
if (scoreInfo.getCultureGrade() >= firstCulture && if (trueCulture >= firstRule.getCultureMin() &&
scoreInfo.getMajorGrade() >= firstMajor) { trueMajor >= firstRule.getProfessionMin()) {
return SchemeTypeEnums.UNDERGRADUATE_ARTS.getCode(); return SchemeTypeEnums.UNDERGRADUATE_ARTS.getCode();
} }
...@@ -167,9 +167,9 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess ...@@ -167,9 +167,9 @@ public class ProfessionServiceImpl extends ServiceImpl<ProfessionMapper, Profess
} }
//专科类比分 = 本年录取分 -去年录取分 + 考生分数 //专科类比分 = 本年录取分 -去年录取分 + 考生分数
double firstCulture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade(); double trueCulture = firstRule.getCurrentYearCulture() - firstRule.getCultureMin() + scoreInfo.getCultureGrade();
double firstMajor = firstRule.getCurrentYearMajor() - firstRule.getProfessionMin() + scoreInfo.getMajorGrade(); double trueMajor = firstRule.getCurrentYearMajor() - firstRule.getProfessionMin() + scoreInfo.getMajorGrade();
if (scoreInfo.getCultureGrade() >= firstCulture && scoreInfo.getMajorGrade() >= firstMajor) { if (trueCulture >= firstRule.getCultureMin() && trueMajor >= firstRule.getProfessionMin()) {
return SchemeTypeEnums.UNDERGRADUATE_LITERATURE.getCode(); return SchemeTypeEnums.UNDERGRADUATE_LITERATURE.getCode();
} }
......
...@@ -53,19 +53,19 @@ public class ShiroConfig { ...@@ -53,19 +53,19 @@ public class ShiroConfig {
// 设置拦截器集合 // 设置拦截器集合
Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>(); Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>();
// filterChainDefinitionMap.put("/authInformation/save", "anon");//存储设备IMEI号和手机SIM卡ID号 filterChainDefinitionMap.put("/authInformation/save", "anon");//存储设备IMEI号和手机SIM卡ID号
// filterChainDefinitionMap.put("/sys/login", "anon"); // 登录页面-身份认证 filterChainDefinitionMap.put("/sys/login", "anon"); // 登录页面-身份认证
// filterChainDefinitionMap.put("/sys/registered", "anon"); // 注册页面 filterChainDefinitionMap.put("/sys/registered", "anon"); // 注册页面
// filterChainDefinitionMap.put("/swagger-ui.html", "anon"); // swagger接口-匿名访问 filterChainDefinitionMap.put("/swagger-ui.html", "anon"); // swagger接口-匿名访问
// filterChainDefinitionMap.put("/swagger/**", "anon"); filterChainDefinitionMap.put("/swagger/**", "anon");
// filterChainDefinitionMap.put("/admin/anon/**", "anon"); filterChainDefinitionMap.put("/admin/anon/**", "anon");
// filterChainDefinitionMap.put("/webjars/springfox-swagger-ui/**", "anon"); filterChainDefinitionMap.put("/webjars/springfox-swagger-ui/**", "anon");
// filterChainDefinitionMap.put("/swagger-resources/**", "anon"); filterChainDefinitionMap.put("/swagger-resources/**", "anon");
// filterChainDefinitionMap.put("/v2/api-docs", "anon"); filterChainDefinitionMap.put("/v2/api-docs", "anon");
// filterChainDefinitionMap.put("/upload_flowChart/**", "anon");//图片地址 filterChainDefinitionMap.put("/upload_flowChart/**", "anon");//图片地址
// filterChainDefinitionMap.put("/webSocket/**", "anon");//socket filterChainDefinitionMap.put("/webSocket/**", "anon");//socket
// filterChainDefinitionMap.put("/message/**", "anon");//消息推送接口 filterChainDefinitionMap.put("/message/**", "anon");//消息推送接口
// filterChainDefinitionMap.put("/**", "oauth2"); // 其他路径均需要身份认证,一般位于最下面,优先级最低 filterChainDefinitionMap.put("/**", "oauth2"); // 其他路径均需要身份认证,一般位于最下面,优先级最低
// 设置拦截器 // 设置拦截器
shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap); shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment