This commit is contained in:
zhouwentao 2024-04-13 10:30:20 +08:00
parent f3e130d4cb
commit b9f443f557
1 changed files with 3 additions and 4 deletions

View File

@ -122,14 +122,13 @@ public class ScoreUtil {
* @param majorBatch 专业批次
*/
public static boolean hasComputeEnrollProbabilityPermissions(String nowBatch,String majorBatch){
return true;
/*if (StringUtils.isBlank(nowBatch) || StringUtils.isBlank(majorBatch)) {
if (StringUtils.isBlank(nowBatch) || StringUtils.isBlank(majorBatch)) {
return false;
}
//将两个批次设置为数字等级数字越小 权限越多 1st.
int nowLevel = "本科A段".equals(nowBatch) ? 1 : "本科B段".equals(nowBatch) ? 2 : "本科".equals(nowBatch) ? 3 : 4;
int nowLevel = "本科A段".equals(nowBatch) ? 1 : "本科B段".equals(nowBatch) ? 1 : "本科".equals(nowBatch) ? 3 : 4;
int majorLevel = "提前批".equals(majorBatch)?1: "本科A段".equals(majorBatch) ? 1 : "本科B段".equals(majorBatch) ? 2 : "本科".equals(majorBatch) ? 3 : 4;
return nowLevel<=majorLevel;*/
return nowLevel<=majorLevel;
}
/**