| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZfClean; |
| | | import com.ruoyi.domain.excel.ZfCleanExcelBean; |
| | | import com.ruoyi.service.ZfCleanService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; |
| | |
| | | return zfCleanService.selectDataList(zfClean, pageNum, pageSize); |
| | | } |
| | | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfCleanExcelBean> list = Collections.singletonList(new ZfCleanExcelBean()); |
| | | ExcelUtil<ZfCleanExcelBean> util = new ExcelUtil<>(ZfCleanExcelBean.class); |
| | | util.exportExcel(response,list,"保洁收纳记录数据"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出保洁收纳记录列表 |