Selaa lähdekoodia

update 修改不规范命名

疯狂的狮子Li 3 vuotta sitten
vanhempi
commit
6502f21072

+ 3 - 3
ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestDemoController.java

@@ -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());
     }