| | |
| | | import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO; |
| | | import com.panzhihua.common.model.vos.community.ComMngVolunteerMngVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenAlarmStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenCourtyardStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.BigScreenVolunteerStatisticsInfo; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.EquipmentPointMapDataVO; |
| | | import com.panzhihua.common.model.vos.community.bigscreen.VolunteerOrgRelationVO; |
| | |
| | | jjwtTotalPolylineData.add(temp); |
| | | }); |
| | | statisticsInfo.setJjwtTotalPolylineData(jjwtTotalPolylineData); |
| | | //新增院落议事数 |
| | | List<StatisticsCommVO> ylysAddPolylineData = comActFourMemberDao.retrieveYLYSAddPolylineData(communityId); |
| | | statisticsInfo.setYlysAddPolylineData(ylysAddPolylineData); |
| | | //累计院落议事数 |
| | | List<StatisticsCommVO> ylysTotalPolylineData = new ArrayList<>(); |
| | | ylysAddPolylineData.forEach(e -> { |
| | | StatisticsCommVO temp = comActFourMemberDao.retrieveYLYSTotalPolylineData(communityId, e.getFiled()); |
| | | temp.setFiled(e.getFiled()); |
| | | ylysTotalPolylineData.add(temp); |
| | | }); |
| | | statisticsInfo.setYlysTotalPolylineData(ylysTotalPolylineData); |
| | | return R.ok(statisticsInfo); |
| | | } |
| | | |
| | |
| | | return R.ok(comActMicroWishDAO.pageFourMemberResolve(page, pageBaseDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 金沙定制页面-四长四员院落议事展示列表 |
| | | * @param pageBaseDTO |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R pageCourtyardDiscuss(PageBaseDTO pageBaseDTO) { |
| | | Page page = retrievePage(pageBaseDTO); |
| | | return R.ok(comActDiscussDAO.pageCourtyardDiscuss(page, pageBaseDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 金沙定制页面-院落议事 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R getCourtyardBaseData(Long communityId) { |
| | | BigScreenCourtyardStatisticsInfo statisticsInfo = comActDiscussDAO.getCourtyardBaseData(communityId); |
| | | //新增院落议事数 |
| | | List<StatisticsCommVO> discussAddPolylineData = comActFourMemberDao.retrieveYLYSAddPolylineData(communityId); |
| | | statisticsInfo.setDiscussAddPolylineData(discussAddPolylineData); |
| | | //累计院落议事数 |
| | | List<StatisticsCommVO> discussTotalPolylineData = new ArrayList<>(); |
| | | discussAddPolylineData.forEach(e -> { |
| | | StatisticsCommVO temp = comActFourMemberDao.retrieveYLYSTotalPolylineData(communityId, e.getFiled()); |
| | | temp.setFiled(e.getFiled()); |
| | | discussTotalPolylineData.add(temp); |
| | | }); |
| | | statisticsInfo.setDiscussTotalPolylineData(discussTotalPolylineData); |
| | | return R.ok(statisticsInfo); |
| | | } |
| | | |
| | | private Page retrievePage(PageBaseDTO pageBaseDTO) { |
| | | Long pageNum = pageBaseDTO.getPageNum(); |
| | | Long size = pageBaseDTO.getPageSize(); |