分析:两种分工都可以实现导入,只不过在速度上第二种效果更高。我以十万条数据做测试,第一种方式用了23分钟,经过优化勉强缩减到15分钟,第二种用了不到一分钟。以图为证:
MaterialMonitorController.java
@Log(title = "物料监测", businessType = BusinessType.IMPORT)
@RequiresPermissions("system:materialMonitor:import")
@PostMapping("/importData")
@ResponseBody
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
{
//ExcelUtil<MaterialMonitor> util = new ExcelUtil<MaterialMonitor>(MaterialMonitor.class);
//List<MaterialMonitor