摘要: =CONCATENATE("INSERT INTO 表名(列1,列2,列3) VALUES('" & A1 & "', '" & A2 & "', '" &A3 & "');") 如果是多行,则需要拖住下来,就会动态生成具体的sql语句。 例如=CONCATENATE("INSERT INTO ba 阅读全文
posted @ 2023-07-31 11:21 瓦刀哥 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: @Transactional(readOnly=false) public void importData() { ExcelUtil excelUtil = new ExcelUtil(); System.out.println("jinru"); //读取excel数据 List result 阅读全文
posted @ 2023-07-31 11:19 瓦刀哥 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Controller层 @RequestMapping(value = "importExcel", method = RequestMethod.POST) @ResponseBody public String importExcel(@ModelAttribute MultipartFile 阅读全文
posted @ 2023-07-31 11:16 瓦刀哥 阅读(676) 评论(0) 推荐(0) 编辑