| | |
| | | List<TodoEventsVO> todoEventsVOS1=comActEasyPhotoService.selectNeedToDo(communityId,userId); |
| | | List<TodoEventsVO> todoEventsVOS2=comActMicroWishService.selectNeedToDo(communityId,userId); |
| | | List<TodoEventsVO> todoEventsVOS3=comMngVolunteerMngService.selectNeedToDo(communityId,userId); |
| | | if (!ObjectUtils.isEmpty(todoEventsVOS1)) { |
| | | todoEventsVOS.addAll(todoEventsVOS1); |
| | | } |
| | | if (!ObjectUtils.isEmpty(todoEventsVOS2)) { |
| | | todoEventsVOS.addAll(todoEventsVOS2); |
| | | } |
| | | if (!ObjectUtils.isEmpty(todoEventsVOS3)) { |
| | | todoEventsVOS.addAll(todoEventsVOS3); |
| | | } |
| | | |
| | | TodoEventsVO todoEventsVO=new TodoEventsVO(); |
| | | todoEventsVO.setType(1); |
| | | todoEventsVO.setNum(todoEventsVOS1.size()); |
| | | TodoEventsVO todoEventsVO1=new TodoEventsVO(); |
| | | todoEventsVO1.setType(2); |
| | | todoEventsVO1.setNum(todoEventsVOS2.size()); |
| | | TodoEventsVO todoEventsVO2=new TodoEventsVO(); |
| | | todoEventsVO2.setType(4); |
| | | todoEventsVO2.setNum(todoEventsVOS3.size()); |
| | | todoEventsVOS.add(todoEventsVO); |
| | | todoEventsVOS.add(todoEventsVO1); |
| | | todoEventsVOS.add(todoEventsVO2); |
| | | return R.ok(todoEventsVOS); |
| | | } |
| | | |