// 时间处理
 public List<CommonSport> buildList(List<CommonSport> list) {
   List<CommonSport> csList = new ArrayList<CommonSport>();
   for (int i = 0; i < list.size(); i++) {
     CommonSport commonSport = list.get(i);
     String statdate = commonSport.getStatdate();
     statdate = statdate.substring(0, statdate.indexOf(":"));
     commonSport.setStatdate(statdate + ":00");
     csList.add(commonSport);
   }
   return csList;
 }
 // 时间处理
 public List<CommonSport> buildList1(List<CommonSport> list, Integer intType, Integer dataType) {
   List<CommonSport> csList = new ArrayList<CommonSport>();
   for (int i = 0; i < list.size(); i++) {
     CommonSport commonSport = list.get(i);
     String statdate = commonSport.getStatdate();
     statdate = statdate.substring(0, statdate.indexOf(":"));
     commonSport.setStatdate(statdate + ":00");
     String context = commonSport.getContext();
     if (intType == 12) {
       if (context != null && !context.equals("")) {
         String[] c = context.split("\\|");
         // commonSport.setContext1(c[2]);
         commonSport.setContext2(c[4]);
       }
     } else {
       if (context != null && !context.equals("")) {
         String[] c = context.split("\\|");
         commonSport.setContext1(c[1]);
         commonSport.setContext2(commonSport.getDetail());
       }
     }
     csList.add(commonSport);
   }
   return csList;
 }
  public List<CommonSport> buildBeanList(List list, int dataType) {
    List<CommonSport> CustomerList = null;
    CommonSport commonSport = null;
    if (list != null && !list.isEmpty()) {
      CustomerList = new ArrayList<CommonSport>();
      for (int i = 0; i < list.size(); i++) {
        commonSport = new CommonSport();
        Object[] bean = (Object[]) list.get(i);

        commonSport.setOTreminal(findTerminalById(Common.StringToLong(bean[0] + "")));
        commonSport.setNTerminal(findTerminalById(Common.StringToLong(bean[1] + "")));
        commonSport.setNmOFlush(Common.StringToLong(bean[2].toString()));
        commonSport.setNmFlush(Common.StringToLong(bean[3].toString()));
        commonSport.setIntYear(Common.StringToInt(bean[4] + ""));
        commonSport.setIntMonth(Common.StringToInt(bean[5] + "")); // 月
        commonSport.setIntDay(Common.StringToInt(bean[7] + "")); // 日
        commonSport.setIntWeek(Common.StringToInt(bean[6] + "")); // 周
        commonSport.calculateData();
        commonSport.setSpanDate(dataType + 1);
        if (dataType == 0) commonSport.setStatdate(commonSport.getStatdate().split(" ")[0]);
        CustomerList.add(commonSport);
      }
    }
    return CustomerList;
  }