| | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.dto.caseHandler.QueryForViolationParam; |
| | | import com.ycl.dto.statistics.UnlawfulDto; |
| | | import com.ycl.dto.statistics.UnlawfulShopDto; |
| | | import com.ycl.utils.EasyExcelUtils; |
| | | import com.ycl.vo.casePool.QueryForViolationVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | return CommonResult.success(page); |
| | | } |
| | | |
| | | @PostMapping("/export/unlawful") |
| | | @ApiOperation("按各种统计方式-导出") |
| | | public void export(HttpServletResponse response) { |
| | | String sheetName = "按统计方式"; |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulDto.class, ls); |
| | | } |
| | | |
| | | @PostMapping("/export/shop") |
| | | @ApiOperation("门前三包-导出") |
| | | public void exportShop(HttpServletResponse response) { |
| | | List<UnlawfulShopDto> ls = new ArrayList<>(); |
| | | ls.add(new UnlawfulShopDto("店铺1", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺2", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺3", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺4", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺5", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺6", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺7", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺8", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺9", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺10", 100, 10, 1, 20, 5, 20, 0.6)); |
| | | ls.add(new UnlawfulShopDto("店铺11", 100, 10, 1, 20, 5, 20, 0.7)); |
| | | ls.add(new UnlawfulShopDto("店铺12", 100, 10, 1, 20, 5, 20, 0.8)); |
| | | ls.add(new UnlawfulShopDto("店铺13", 100, 10, 1, 20, 5, 20, 0.9)); |
| | | String sheetName = "门前三包"; |
| | | EasyExcelUtils.export(response, sheetName, UnlawfulShopDto.class, ls); |
| | | } |
| | | } |