예제 #1
0
 public ArrayList<ArrayList<String>> PlayerHighHandler(String sortBy, boolean isDesc, int season) {
   ArrayList<ArrayList<String>> datas = new ArrayList<ArrayList<String>>();
   ArrayList<sortParam> sortP = new ArrayList<sortParam>();
   sortParam sort = new sortParam("", isDesc);
   switch (sortBy) {
     case "助攻率":
       sort.field = "assistEfficient";
       break;
     case "盖帽率":
       sort.field = "blockShotEfficient";
       break;
     case "抢断率":
       sort.field = "stealEfficient";
       break;
     case "防守篮板率":
       sort.field = "defendReboundEfficient";
       break;
     case "进攻篮板率":
       sort.field = "offendReboundEfficient";
       break;
     case "失误率":
       sort.field = "faultEfficient";
       break;
     case "使用率":
       sort.field = "frequency";
       break;
     case "GmSc":
       sort.field = "gmSc";
       break;
     case "真实命中率":
       sort.field = "realShot";
       break;
     case "篮板率":
       sort.field = "reboundEfficient";
       break;
     case "投篮效率":
       sort.field = "shotEfficient";
       break;
     default:
       return datas;
   }
   sortP.add(sort);
   datas = p2l.highData(playerbl.sortPlayerHigh(sortP, season));
   return datas;
 }
예제 #2
0
 public ArrayList<ArrayList<String>> PlayerNormalAvgHandler(
     String sortBy, boolean isDesc, int season) {
   ArrayList<ArrayList<String>> datas = new ArrayList<ArrayList<String>>();
   ArrayList<sortParam> sortP = new ArrayList<sortParam>();
   sortParam sort = new sortParam("", isDesc);
   switch (sortBy) {
     case "首发":
       sort.field = "start";
       break;
     case "效率":
       sort.field = "efficiency";
       break;
     case "上场次数":
       sort.field = "numOfGame";
       break;
     case "分钟":
       sort.field = "avgMinute";
       break;
     case "%":
       sort.field = "shot";
       break;
     case "三分%":
       sort.field = "three";
       break;
     case "罚球%":
       sort.field = "penalty";
       break;
     case "进攻":
       sort.field = "avgOffend";
       break;
     case "防守":
       sort.field = "avgDefend";
       break;
     case "篮板":
       sort.field = "avgRebound";
       break;
     case "助攻":
       sort.field = "avgAssist";
       break;
     case "抢断":
       sort.field = "avgSteal";
       break;
     case "盖帽":
       sort.field = "avgBlockShot";
       break;
     case "失误":
       sort.field = "avgFault";
       break;
     case "犯规":
       sort.field = "avgFoul";
       break;
     case "得分":
       sort.field = "avgPoint";
       break;
     default:
       return datas;
   }
   sortP.add(sort);
   datas = p2l.avgNormalData(playerbl.sortPlayerNormalAvg(sortP, season));
   return datas;
 }