| | |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsBar; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsParams; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsPie; |
| | | import cn.gistack.sm.sjztmd.statisticsVO.StatisticsTable; |
| | | import cn.gistack.sm.sjztmd.vo.AttResBaseGeneralInvestigationVO; |
| | | import cn.gistack.sm.sjztmd.vo.TbResGeneralInvestigationParam; |
| | | import cn.gistack.sm.sjztmd.wrapper.AttResBaseWrapper; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @ApiOperation(value = "白蚁普查-添加或者修改", notes = "白蚁普查-添加或者修改") |
| | | @PostMapping(value = "/submit") |
| | | public R submit(@RequestBody TbResGeneralInvestigation tbResGeneralInvestigation) { |
| | | if (tbResGeneralInvestigation.getGuid() == null) { |
| | | tbResGeneralInvestigation.setCreateTime(new Date()); |
| | | } |
| | | // if (tbResGeneralInvestigation.getGuid() == null) { |
| | | tbResGeneralInvestigation.setCreateTime(new Date()); |
| | | // } |
| | | return tbResGeneralInvestigationService.saveOrUpdateBy(tbResGeneralInvestigation); |
| | | } |
| | | |
| | |
| | | return R.data(list); |
| | | } |
| | | |
| | | @GetMapping("/downloadZip") |
| | | @ApiOperation(value = "批量导出白蚁普查的图片视频zip文件") |
| | | public R downloadZip(Query query,String type) throws IOException { |
| | | |
| | | List<String> msg = tbResGeneralInvestigationService.downZip(Condition.getPage(query),type); |
| | | |
| | | return R.data(msg); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("/statisticsPie") |
| | |
| | | } |
| | | |
| | | @GetMapping("/statisticsBar") |
| | | public R statisticsBar(StatisticsParams statisticsParams){ |
| | | public R statisticsBarProvince(StatisticsParams statisticsParams){ |
| | | List<StatisticsBar> list = tbResGeneralInvestigationService.statisticsBar(statisticsParams); |
| | | return R.data(list); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/statisticsTable") |
| | | public R statisticsTable(StatisticsParams statisticsParams){ |
| | | List<StatisticsTable> list = tbResGeneralInvestigationService.statisticsTable(statisticsParams); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |