| | |
| | | import cn.afterturn.easypoi.excel.entity.result.ExcelImportResult; |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.config.WhWarningImportVerifyHandler; |
| | | import com.consum.base.handler.WhWarningImportVerifyHandler; |
| | | import com.consum.base.core.utils.CommonUtil; |
| | | import com.consum.base.core.utils.IdUtil; |
| | | import com.consum.base.pojo.WarnConfImEntity; |
| | |
| | | * @return 获取项目导入的模板 |
| | | * @throws IOException |
| | | */ |
| | | @PostMapping("getWarnConfImportTemplate") |
| | | @GetMapping("getWarnConfImportTemplate") |
| | | public ResponseEntity<InputStreamResource> getProjectImportTemplate() throws IOException { |
| | | // 从当前项目资源目录获取文件 |
| | | org.springframework.core.io.Resource resource = new ClassPathResource("import/warningConfImp.xls"); |