| | |
| | | return CommonResult.success(page); |
| | | } |
| | | |
| | | /*@GetMapping("/unlawful/point") |
| | | @GetMapping("/unlawful/point") |
| | | @ApiOperation("按点位统计") |
| | | @LogSave(operationType = "按点位统计", contain = "查询") |
| | | public CommonResult<IPage<UnlawfulDto>> searchByPoint(@RequestParam(required = true) Integer currentPage, |
| | | @RequestParam(required = true) Integer pageSize, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime beginTime, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime endTime) { |
| | | DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | String startTime = null; |
| | | String endTime1 = null; |
| | | if (beginTime != null){ |
| | | startTime = beginTime.format(fmt); |
| | | } |
| | | if (endTime != null){ |
| | | endTime1 = beginTime.format(fmt); |
| | | } |
| | | IPage<UnlawfulDto> page = new Page<>(); |
| | | page.setTotal(ls.size()); |
| | | page.setRecords(ls); |
| | | List<UnlawfulDto> unlawfulByType = unlawfulService.getUnlawfulBySite((currentPage - 1) * pageSize, pageSize, startTime, endTime1); |
| | | |
| | | page.setTotal(unlawfulByType.size()); |
| | | page.setRecords(unlawfulByType); |
| | | return CommonResult.success(page); |
| | | }*/ |
| | | } |
| | | |
| | | /*@GetMapping("/unlawful/time") |
| | | @ApiOperation("按时间统计") |
| | |
| | | return CommonResult.success(page); |
| | | }*/ |
| | | |
| | | /*@GetMapping("/unlawful/area") |
| | | @GetMapping("/unlawful/area") |
| | | @ApiOperation("按区域统计") |
| | | @LogSave(operationType = "按区域统计", contain = "查询") |
| | | public CommonResult<IPage<UnlawfulDto>> searchByArea(@RequestParam(required = true) Integer currentPage, |
| | | @RequestParam(required = true) Integer pageSize, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime beginTime, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime endTime) { |
| | | DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | String startTime = null; |
| | | String endTime1 = null; |
| | | if (beginTime != null){ |
| | | startTime = beginTime.format(fmt); |
| | | } |
| | | if (endTime != null){ |
| | | endTime1 = beginTime.format(fmt); |
| | | } |
| | | IPage<UnlawfulDto> page = new Page<>(); |
| | | page.setTotal(ls.size()); |
| | | page.setRecords(ls); |
| | | List<UnlawfulDto> unlawfulByType = unlawfulService.getUnlawfulBySite((currentPage - 1) * pageSize, pageSize, startTime, endTime1); |
| | | |
| | | page.setTotal(unlawfulByType.size()); |
| | | page.setRecords(unlawfulByType); |
| | | return CommonResult.success(page); |
| | | }*/ |
| | | } |
| | | |
| | | /*@GetMapping("/unlawful/shop") |
| | | @ApiOperation("门前三包统计") |
| | |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulDto.class, unlawfulByTypeExport); |
| | | } |
| | | |
| | | @PostMapping("/export/unlawful/type") |
| | | @ApiOperation("按各种统计方式-导出") |
| | | public void exportType(HttpServletResponse response) { |
| | | List<UnlawfulDto> unlawfulByTypeExport = unlawfulService.getUnlawfulByTypeExport(); |
| | | String sheetName = "按统计方式"; |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulDto.class, unlawfulByTypeExport); |
| | | } |
| | | |
| | | @PostMapping("/export/unlawful/street") |
| | | @ApiOperation("按各种统计方式-导出") |
| | | public void exportStreet(HttpServletResponse response) { |
| | | List<UnlawfulDto> unlawfulByStreetExport = unlawfulService.getUnlawfulByStreetExport(); |
| | | String sheetName = "按统计方式"; |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulDto.class, unlawfulByStreetExport); |
| | | } |
| | | |
| | | @PostMapping("/export/unlawful/site") |
| | | @ApiOperation("按各种统计方式-导出") |
| | | public void exportSite(HttpServletResponse response) { |
| | | List<UnlawfulDto> unlawfulBySiteExport = unlawfulService.getUnlawfulBySiteExport(); |
| | | String sheetName = "按统计方式"; |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulDto.class, unlawfulBySiteExport); |
| | | } |
| | | |
| | | /*@PostMapping("/export/shop") |
| | | @ApiOperation("门前三包-导出") |
| | | public void exportShop(HttpServletResponse response) { |