水库堤防白蚁普查资料当前页压缩导出新增条件优化v20240701
| | |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseGeneralInvestigationVO; |
| | | import cn.gistack.sm.sjztmd.vo.DyketionVO; |
| | | import cn.gistack.sm.sjztmd.vo.TbDykeInvestigationParam; |
| | | import cn.gistack.sm.sjztmd.vo.TbResDykeVO; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @GetMapping("/downloadZipCopy") |
| | | @ApiOperation(value = "批量导出白蚁普查的图片视频zip文件") |
| | | public R downloadZipCopy(Query query,String type) { |
| | | public R downloadZipCopy(Query query, String type,TbResDykeVO tbResDykeVO) { |
| | | |
| | | List<DyketionVO> msg = tbDykeInvestigationService.downloadZipCopy(Condition.getPage(query),type); |
| | | List<DyketionVO> msg = tbDykeInvestigationService.downloadZipCopy(Condition.getPage(query),type,tbResDykeVO); |
| | | |
| | | return R.data(msg); |
| | | } |
| | |
| | | |
| | | @GetMapping("/downloadZipCopy") |
| | | @ApiOperation(value = "批量导出白蚁普查的图片视频zip文件") |
| | | public R downloadZipCopy(Query query,String type){ |
| | | public R downloadZipCopy(Query query,String type,AttResBaseGeneralInvestigationVO attResBase){ |
| | | |
| | | List<ResGentionVO> msg = tbResGeneralInvestigationService.downZipCopy(Condition.getPage(query),type); |
| | | List<ResGentionVO> msg = tbResGeneralInvestigationService.downZipCopy(Condition.getPage(query),type,attResBase); |
| | | |
| | | return R.data(msg); |
| | | } |
| | |
| | | |
| | | List<StatisticsBar> statisticsBar(StatisticsParams statisticsParams); |
| | | |
| | | List<DyketionVO> downloadZipCopy(IPage<TbResDykeVO> page, String type); |
| | | List<DyketionVO> downloadZipCopy(IPage<TbResDykeVO> page, String type,TbResDykeVO tbResDykeVO); |
| | | } |
| | |
| | | |
| | | List<String> downZip(IPage<ImageAndVideoVO> page,String type) throws IOException; |
| | | |
| | | List<ResGentionVO> downZipCopy(IPage<AttResBaseGeneralInvestigationVO> page,String type); |
| | | List<ResGentionVO> downZipCopy(IPage<AttResBaseGeneralInvestigationVO> page,String type,AttResBaseGeneralInvestigationVO attResBase); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<DyketionVO> downloadZipCopy(IPage<TbResDykeVO> page,String type) { |
| | | public List<DyketionVO> downloadZipCopy(IPage<TbResDykeVO> page,String type,TbResDykeVO tbResDykeVO) { |
| | | //获取已审批的数据 |
| | | List<DyketionVO> iamgeAndVideoUrlcopy = baseMapper.getIamgeAndVideoUrlcopy(); |
| | | |
| | |
| | | //分页情况下 |
| | | if(type.equals("1")){ |
| | | //获取分页信息 |
| | | TbResDykeVO tbResDykeVO = new TbResDykeVO(); |
| | | tbResDykeVO.setTbYear(2024); |
| | | // TbResDykeVO tbResDykeVO = new TbResDykeVO(); |
| | | // tbResDykeVO.setTbYear(2024); |
| | | List<TbResDykeVO> tbResDykeVOIPage = tbResDykeMapper.findTbResDykePcBy(page, tbResDykeVO); |
| | | |
| | | List<String> dykeCode = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ResGentionVO> downZipCopy(IPage<AttResBaseGeneralInvestigationVO> page,String type) { |
| | | public List<ResGentionVO> downZipCopy(IPage<AttResBaseGeneralInvestigationVO> page,String type,AttResBaseGeneralInvestigationVO attResBase) { |
| | | //获取已审批的数据 |
| | | List<ResGentionVO> iamgeAndVideoUrlcopy = baseMapper.getIamgeAndVideoUrlcopy(); |
| | | |
| | |
| | | //分页情况下 |
| | | if(type.equals("1")){ |
| | | //获取分页信息 |
| | | AttResBaseGeneralInvestigationVO attResBaseGeneralInvestigationVO = new AttResBaseGeneralInvestigationVO(); |
| | | attResBaseGeneralInvestigationVO.setTbYear(2024); |
| | | List<AttResBaseGeneralInvestigationVO> attResBaseGeneralInvestigationVOS = attResBaseMapper.selectAttResBaseGeneralInvestigation(page, attResBaseGeneralInvestigationVO); |
| | | // AttResBaseGeneralInvestigationVO attResBaseGeneralInvestigationVO = new AttResBaseGeneralInvestigationVO(); |
| | | // attResBaseGeneralInvestigationVO.setTbYear(2024); |
| | | List<AttResBaseGeneralInvestigationVO> attResBaseGeneralInvestigationVOS = attResBaseMapper.selectAttResBaseGeneralInvestigation(page, attResBase); |
| | | |
| | | List<String> resCode = new ArrayList<>(); |
| | | for (AttResBaseGeneralInvestigationVO imageAndVideoVO : attResBaseGeneralInvestigationVOS) { |