| | |
| | | EventGridDataDO eventGridDataDO = eventGridDataMapper.selectById(eventDO.getGridId()); |
| | | if (eventGridDataDO != null) { |
| | | eventDetailsVO.setGridName(eventGridDataDO.getGridName()); |
| | | eventDetailsVO.setCommunityId(eventGridDataDO.getGridCommunityId()); |
| | | } |
| | | |
| | | //查询事件关联附件 |
| | |
| | | * @return 社区人口数据列表 |
| | | */ |
| | | @Override |
| | | public R specialPopulationList(PageEventSpecialPopulationDTO specialPopulationDTO){ |
| | | IPage<EventSpecialPopulationVO> specialPopulationVOIPage = this.baseMapper.specialPopulationList(new Page(specialPopulationDTO.getPageNum(),specialPopulationDTO.getPageSize()),specialPopulationDTO); |
| | | public R specialPopulationList(PageEventSpecialPopulationDTO specialPopulationDTO) { |
| | | IPage<EventSpecialPopulationVO> specialPopulationVOIPage = this.baseMapper.specialPopulationList(new Page(specialPopulationDTO.getPageNum(), specialPopulationDTO.getPageSize()), specialPopulationDTO); |
| | | if(!specialPopulationVOIPage.getRecords().isEmpty()){ |
| | | specialPopulationVOIPage.getRecords().forEach(specialPopulation -> { |
| | | specialPopulation.setAge(IdcardUtil.getAgeByIdCard(specialPopulation.getIdCard())); |
| | | }); |
| | | } |
| | | return R.ok(specialPopulationVOIPage); |
| | | } |
| | | |
| | | @Override |
| | | public List<EventDetailsVO> getUnUploadEvent() { |
| | |
| | | List<EventDO> unEventList = baseMapper.selectList( |
| | | new QueryWrapper<EventDO>() |
| | | .eq("upload", false) |
| | | .eq("event_process_status", 2) |
| | | ); |
| | | unEventList.forEach(eventDO -> { |
| | | eventDetailsVOList.add(eventDetails(eventDO.getId()).getData()); |