updates
This commit is contained in:
parent
d70a3734c4
commit
a596113f9b
|
|
@ -554,24 +554,64 @@ public class ScoreUtil {
|
|||
* @return
|
||||
*/
|
||||
public static boolean otherScoreJudge(BigDecimal professionalScore, YxUserScore activeCurrentUserScore, RecommendMajorDTO recommendMajorDTO) {
|
||||
// if (recommendMajorDTO != null) {
|
||||
if (recommendMajorDTO != null) {
|
||||
// //语文成绩判断
|
||||
// if (recommendMajorDTO.getChineseScoreLimitation() != null && (activeCurrentUserScore.getChineseScore() == null || activeCurrentUserScore.getChineseScore().compareTo(recommendMajorDTO.getChineseScoreLimitation()) < 0)) {
|
||||
// return false;
|
||||
// }
|
||||
// //外语成绩判断
|
||||
// if (recommendMajorDTO.getEnglishScoreLimitation() != null && (activeCurrentUserScore.getEnglishScore() == null || activeCurrentUserScore.getEnglishScore().compareTo(recommendMajorDTO.getEnglishScoreLimitation()) < 0)) {
|
||||
// return false;
|
||||
// }
|
||||
// //文化成绩判断
|
||||
// if (recommendMajorDTO.getCulturalScoreLimitation() != null && (activeCurrentUserScore.getCulturalScore() == null || activeCurrentUserScore.getCulturalScore().compareTo(recommendMajorDTO.getCulturalScoreLimitation()) < 0)) {
|
||||
// return false;
|
||||
// }
|
||||
// //统考成绩判断
|
||||
// if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getProfessionalScore() == null || activeCurrentUserScore.getProfessionalScore().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
//外语成绩判断
|
||||
if (recommendMajorDTO.getEnglishScoreLimitation() != null && (activeCurrentUserScore.getEnglishScore() == null || activeCurrentUserScore.getEnglishScore().compareTo(recommendMajorDTO.getEnglishScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
//文化成绩判断
|
||||
if (recommendMajorDTO.getCulturalScoreLimitation() != null && (activeCurrentUserScore.getCulturalScore() == null || activeCurrentUserScore.getCulturalScore().compareTo(recommendMajorDTO.getCulturalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
if (StringUtils.isNotBlank(recommendMajorDTO.getMajorType()) && "音乐类".equals(recommendMajorDTO.getMajorType()) && StringUtils.isNotBlank(recommendMajorDTO.getMajorTypeChild())) {
|
||||
if ("音乐表演".equals(recommendMajorDTO.getMajorTypeChild())) {
|
||||
if ("器乐".equals(recommendMajorDTO.getMainSubjects())) {
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getYybyqy() == null || activeCurrentUserScore.getYybyqy().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getYybysy() == null || activeCurrentUserScore.getYybysy().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getYyjy() == null || activeCurrentUserScore.getYyjy().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}else if (StringUtils.isNotBlank(recommendMajorDTO.getMajorType()) && "表演类".equals(recommendMajorDTO.getMajorType()) && StringUtils.isNotBlank(recommendMajorDTO.getMajorTypeChild())) {
|
||||
if ("服装表演".equals(recommendMajorDTO.getMajorTypeChild())) {
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getFzby() == null || activeCurrentUserScore.getFzby().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}else if ("戏剧影视表演".equals(recommendMajorDTO.getMajorTypeChild())) {
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getXjysby() == null || activeCurrentUserScore.getXjysby().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getXjysdy() == null || activeCurrentUserScore.getXjysdy().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else{
|
||||
// 其他专业
|
||||
//统考成绩判断
|
||||
if (recommendMajorDTO.getProfessionalScoreLimitation() != null && (activeCurrentUserScore.getProfessionalScore() == null || activeCurrentUserScore.getProfessionalScore().compareTo(recommendMajorDTO.getProfessionalScoreLimitation()) < 0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue