Skip to content

Commit

Permalink
update for time 排序
Browse files Browse the repository at this point in the history
  • Loading branch information
leedar360 committed Nov 22, 2015
1 parent d3916fc commit c26c179
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zmsport.iyuesai.controller.site;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.servlet.http.HttpSession;
Expand Down Expand Up @@ -132,6 +133,8 @@ public String info(@PathVariable long id, HttpSession session,Model model) {
for(Team team : list) {
cList.addAll(cService.findAllChallengesByTeamId(team.getId()));
}


model.addAttribute("myChallenges", cList);
return "/site/pages/me";
}else {
Expand All @@ -148,6 +151,7 @@ public String info(@PathVariable long id, HttpSession session,Model model) {
for(Team team : list) {
cList.addAll(cService.findAllChallengesByTeamId(team.getId()));
}
Collections.reverse( cList);
model.addAttribute("myChallenges", cList);
return "/site/pages/him";
}
Expand Down

0 comments on commit c26c179

Please sign in to comment.