| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.entity.Report; |
| | | import com.ycl.platform.domain.entity.TMonitor; |
| | | import com.ycl.platform.domain.vo.ReportVO; |
| | | import com.ycl.platform.domain.vo.TMonitorVO; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | |
| | | public Result list() { |
| | | return reportService.all(); |
| | | } |
| | | |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ReportQuery query) |
| | | { |
| | | List<ReportVO> list = reportService.export(query); |
| | | ExcelUtil<ReportVO> util = new ExcelUtil<>(ReportVO.class); |
| | | util.exportExcel(response, list, "运维单位"); |
| | | } |
| | | } |