update 修改不规范命名

This commit is contained in:
疯狂的狮子Li 2021-11-26 05:57:28 +00:00 committed by Gitee
parent c21ff85b57
commit 6502f21072

View File

@ -78,9 +78,9 @@ public class TestDemoController extends BaseController {
@PostMapping("/importData")
public AjaxResult<Void> importData(@RequestPart("file") MultipartFile file) throws Exception {
ExcelResult<TestDemoImportVo> excelResult = ExcelUtil.importExcel(file.getInputStream(), TestDemoImportVo.class, true, true);
List<TestDemoImportVo> testDemoImportVoList = excelResult.getList();
List<TestDemo> TestDemoList = BeanUtil.copyToList(testDemoImportVoList, TestDemo.class);
iTestDemoService.saveAll(TestDemoList);
List<TestDemoImportVo> volist = excelResult.getList();
List<TestDemo> list = BeanUtil.copyToList(volist, TestDemo.class);
iTestDemoService.saveAll(list);
return AjaxResult.success(excelResult.getAnalysis());
}