// 时间处理 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; }