| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import cn.hutool.core.util.IdcardUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO; |
| | | import com.panzhihua.common.model.dtos.grid.PagePopulationListDTO; |
| | | import com.panzhihua.common.model.dtos.user.PageInputUserDTO; |
| | | import com.panzhihua.common.model.helper.AESUtil; |
| | | import com.panzhihua.common.model.vos.R; |
| | |
| | | import com.panzhihua.common.model.vos.community.screen.index.*; |
| | | import com.panzhihua.common.model.vos.grid.EventGridDataVO; |
| | | import com.panzhihua.common.model.vos.grid.EventResourceVO; |
| | | import com.panzhihua.common.model.vos.grid.PopulationListVO; |
| | | import com.panzhihua.common.model.vos.screen.ComActPopulationCultureVO; |
| | | import com.panzhihua.common.model.vos.screen.ComActPopulationScreenVO; |
| | | import com.panzhihua.common.model.vos.screen.ComMngPopulationAgeVO; |
| | |
| | | |
| | | //查询事件流转记录 |
| | | List<EventTransferRecordVO> transferRecordList = this.baseMapper.getEventScreenEventTransList(eventDetailDTO.getEventId()); |
| | | if(!transferRecordList.isEmpty()){ |
| | | transferRecordList.forEach(transfer -> { |
| | | if(transfer.getFromType().equals(EventTransferRecordVO.fromType.wgy)){ |
| | | //查询上级网格信息 |
| | | EventTransferRecordDetailVO transferRecordDetailVO = this.baseMapper.getEventScreenEventTransDetail(transfer.getEventId()); |
| | | transfer.setSuperiorRelationship(transferRecordDetailVO.getStreetName() + "-" |
| | | + transferRecordDetailVO.getCommunityName() + "-" + transferRecordDetailVO.getGridName()); |
| | | }else if(transfer.getFromType().equals(EventTransferRecordVO.fromType.sq)){ |
| | | //查询上级社区信息 |
| | | EventTransferRecordDetailVO transferRecordDetailVO = this.baseMapper.getEventScreenEventTransDetailByCommunityId(transfer.getFromId()); |
| | | transfer.setSuperiorRelationship(transferRecordDetailVO.getStreetName() + "-" |
| | | + transferRecordDetailVO.getCommunityName()); |
| | | } |
| | | }); |
| | | } |
| | | statisticsVO.setTransferRecordList(transferRecordList); |
| | | } |
| | | } |
| | | return R.ok(statisticsVO); |
| | | } |
| | | |
| | | @Override |
| | | public R pagePopulationListApp(PagePopulationListDTO populationListDTO){ |
| | | IPage<PopulationListVO> pagePopulationList = this.baseMapper.pagePopulationListApp(new Page(populationListDTO.getPageNum(),populationListDTO.getPageSize()),populationListDTO); |
| | | if(!pagePopulationList.getRecords().isEmpty()){ |
| | | pagePopulationList.getRecords().forEach(population -> { |
| | | population.setAge(IdcardUtil.getAgeByIdCard(population.getCardNo())); |
| | | }); |
| | | } |
| | | return R.ok(pagePopulationList); |
| | | } |
| | | |
| | | |
| | | } |