updates 显示24省控线

This commit is contained in:
zhouwentao 2024-06-28 07:25:22 +08:00
parent 0fea2ca6ae
commit 589c362390
3 changed files with 36 additions and 21 deletions

View File

@ -147,6 +147,9 @@ public class MiniRecommendMajorController {
} }
//根据录取方式计算折合分数 //根据录取方式计算折合分数
for (String rulesEnrollProbability : maps.keySet()) { for (String rulesEnrollProbability : maps.keySet()) {
if (StringUtils.isBlank(rulesEnrollProbability)) {
continue;
}
Optional<YxSchoolMajor> any = schooMajorList.stream().filter(s -> s.getRulesEnrollProbability().equals(rulesEnrollProbability)).findAny(); Optional<YxSchoolMajor> any = schooMajorList.stream().filter(s -> s.getRulesEnrollProbability().equals(rulesEnrollProbability)).findAny();
if (any.isPresent()) { if (any.isPresent()) {
YxSchoolMajor yxSchoolMajor = any.get(); YxSchoolMajor yxSchoolMajor = any.get();

View File

@ -103,26 +103,41 @@ public class YxHistoryScoreControlLineController extends JeecgController<YxHisto
for (YxHistoryScoreControlLine historyScoreControlLine : historyScoreControlLineList) { for (YxHistoryScoreControlLine historyScoreControlLine : historyScoreControlLineList) {
year = historyScoreControlLine.getYear(); year = historyScoreControlLine.getYear();
batch = historyScoreControlLine.getBatch(); batch = historyScoreControlLine.getBatch();
if (YxConstant.nowYear.equals(year)) { // if (YxConstant.nowYear.equals(year)) {
if (!"高职高专".equals(batch)) { // if (!"高职高专".equals(batch)) {
historyScoreControlLine.setCulturalScore(YxConstant.bigDecimal0); // historyScoreControlLine.setCulturalScore(YxConstant.bigDecimal0);
historyScoreControlLine.setCulturalScoreXk(YxConstant.bigDecimal0); // historyScoreControlLine.setCulturalScoreXk(YxConstant.bigDecimal0);
historyScoreControlLine.setSpecialScore(YxConstant.bigDecimal0); // historyScoreControlLine.setSpecialScore(YxConstant.bigDecimal0);
historyScoreControlLine.setSpecialScoreXk(YxConstant.bigDecimal0); // historyScoreControlLine.setSpecialScoreXk(YxConstant.bigDecimal0);
}else{ // }else{
historyScoreControlLine.setCulturalScore(YxConstant.bigDecimal0); // historyScoreControlLine.setCulturalScore(YxConstant.bigDecimal0);
historyScoreControlLine.setCulturalScoreXk(YxConstant.bigDecimal0); // historyScoreControlLine.setCulturalScoreXk(YxConstant.bigDecimal0);
// }
// }
if ("2024".equals(year)) {
if (batch.equals("本科B段")) {
continue;
} }
if(batch.equals("本科A段")){
historyScoreControlLine.setBatch("本科批");
}
list = dataMaps.getOrDefault(year,new ArrayList<>());
list.add(historyScoreControlLine);
dataMaps.put(year,list);
}else{
list = dataMaps.getOrDefault(year,new ArrayList<>());
if ("本科A段".equals(batch)) {
YxHistoryScoreControlLine yxHistoryScoreControlLine1 = new YxHistoryScoreControlLine();
BeanUtils.copyProperties(historyScoreControlLine,yxHistoryScoreControlLine1);
yxHistoryScoreControlLine1.setBatch("本科提前批");
list.add(yxHistoryScoreControlLine1);
}
list.add(historyScoreControlLine);
dataMaps.put(year,list);
} }
list = dataMaps.getOrDefault(year,new ArrayList<>());
if ("本科A段".equals(batch)) {
YxHistoryScoreControlLine yxHistoryScoreControlLine1 = new YxHistoryScoreControlLine();
BeanUtils.copyProperties(historyScoreControlLine,yxHistoryScoreControlLine1);
yxHistoryScoreControlLine1.setBatch("本科提前批");
list.add(yxHistoryScoreControlLine1);
}
list.add(historyScoreControlLine);
dataMaps.put(year,list);
} }
json = JSONObject.toJSONString(dataMaps); json = JSONObject.toJSONString(dataMaps);
redisUtil.set(key,json,3600); redisUtil.set(key,json,3600);

View File

@ -49,9 +49,6 @@ public class YxVolunteerServiceImpl extends ServiceImpl<YxVolunteerMapper, YxVol
@Resource @Resource
private YxVolunteerRecordMapper yxVolunteerRecordMapper; private YxVolunteerRecordMapper yxVolunteerRecordMapper;
final static BigDecimal bigDecimal100 = new BigDecimal("100");//100倍率
@Override @Override
public VolunteerDTO getActiveByCreate(String createBy) { public VolunteerDTO getActiveByCreate(String createBy) {
VolunteerDTO volunteerDTO = new VolunteerDTO(); VolunteerDTO volunteerDTO = new VolunteerDTO();