@RequestMapping("/list-view")
@Permission({"member-view"})
public String doListView(Page<TeamMember> page,
@RequestAttr User user, @RequestAttr Project project, Model model) {
if(user!=null) {
TeamMember teamMember = memberService.getMember(project, user, Boolean.TRUE);
List<TeamMember> needApprove = Collections.emptyList();
List<TeamMember> waitApprove = Collections.emptyList();
List<TeamMember> needAccept = Collections.emptyList();
List<TeamMember> waitAccept = Collections.emptyList();
if(NumberUtils.compare(project.getId(), user.getProject().getId())==0 ||
(teamMember!=null && teamMember.getRole().getLevel()<=10)) {
needApprove = memberService.getMemberList(project, user,
TeamMember.STATUS_WAIT_APPROVE, true);
waitApprove = memberService.getMemberList(project, user,
TeamMember.STATUS_WAIT_APPROVE, false);
needAccept = memberService.getMemberList(project, user,