|
@@ -340,12 +340,12 @@ public class PlanYearsController extends BaseController {
|
|
@PostMapping("/importData")
|
|
@PostMapping("/importData")
|
|
@PreAuthorize("@ss.hasPermi('plan:planYears:importData')")
|
|
@PreAuthorize("@ss.hasPermi('plan:planYears:importData')")
|
|
@Log(title = ModularConstans.planYear, businessType = BusinessType.INSERT)
|
|
@Log(title = ModularConstans.planYear, businessType = BusinessType.INSERT)
|
|
- public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
|
|
|
|
|
|
+ public AjaxResult importData(MultipartFile file) throws Exception {
|
|
ExcelUtil<PlanYearsStandardVo> util = new ExcelUtil<>(PlanYearsStandardVo.class);
|
|
ExcelUtil<PlanYearsStandardVo> util = new ExcelUtil<>(PlanYearsStandardVo.class);
|
|
List<PlanYearsStandardVo> planYears = util.importExcel(file.getInputStream(), 2);
|
|
List<PlanYearsStandardVo> planYears = util.importExcel(file.getInputStream(), 2);
|
|
//获取采购单位-
|
|
//获取采购单位-
|
|
LoginUser loginUser = getLoginUser();
|
|
LoginUser loginUser = getLoginUser();
|
|
- String message = planYearsService.importPlanYears(planYears, updateSupport, loginUser);
|
|
|
|
|
|
+ String message = planYearsService.importPlanYears(planYears, loginUser);
|
|
return success(message);
|
|
return success(message);
|
|
}
|
|
}
|
|
|
|
|