public ArrayList<ArrayList<String>> TeamHighHandler(String sortBy, boolean isDesc, int season) { ArrayList<ArrayList<String>> datas = new ArrayList<ArrayList<String>>(); String sort; switch (sortBy) { case "助攻效率": sort = "assistEfficient"; break; case "抢断效率": sort = "stealEfficient"; break; case "防守效率": sort = "defendEfficient"; break; case "进攻效率": sort = "offendEfficient"; break; case "防守篮板率": sort = "defendReboundEfficient"; break; case "进攻篮板率": sort = "offendReboundEfficient"; break; case "进攻回合": sort = "offendRound"; break; case "胜率": sort = "winRate"; break; default: return datas; } System.out.println(sort + " " + isDesc); datas = t2l.highData(teambl.sortTeamHigh(30, sort, isDesc, season)); return datas; }
public ArrayList<ArrayList<String>> TeamNormalAvgHandler( String sortBy, boolean isDesc, int season) { ArrayList<ArrayList<String>> datas = new ArrayList<ArrayList<String>>(); String sort; switch (sortBy) { case "助攻": sort = "avgAssist"; break; case "盖帽": sort = "avgBlockShot"; break; case "篮板": sort = "avgRebound"; break; case "抢断": sort = "avgSteal"; break; case "防守篮板": sort = "avgDefendRebound"; break; case "进攻篮板": sort = "avgOffendRebound"; break; case "%": sort = "shot"; break; case "三分%": sort = "three"; break; case "罚球%": sort = "penalty"; break; case "失误": sort = "avgFault"; break; case "犯规": sort = "avgFoul"; break; case "比赛场数": sort = "numOfGame"; break; case "得分": sort = "avgPoint"; break; default: return datas; } System.out.println(sort + " " + isDesc); datas = t2l.avgNormalData(teambl.sortTeamNormalAvg(30, sort, isDesc, season)); return datas; }