|
@@ -184,7 +184,7 @@ public class ProvisionalPlanController extends BaseController {
|
|
|
@Log(title = ModularConstans.provisionalPlan, businessType = BusinessType.INSERT)
|
|
|
public AjaxResult importProvisionalPlan(MultipartFile file, boolean updateSupport) throws Exception {
|
|
|
ExcelUtil<ProvisionalPlan> util = new ExcelUtil<>(ProvisionalPlan.class);
|
|
|
- List<ProvisionalPlan> provisionalPlans = util.importExcel(file.getInputStream());
|
|
|
+ List<ProvisionalPlan> provisionalPlans = util.importExcel(file.getInputStream(), 3);
|
|
|
if (StringUtils.isNull(provisionalPlans) || provisionalPlans.size() == 0) {
|
|
|
throw new ServiceException("导入临时计划数据不能为空!");
|
|
|
}
|