From 40ac7937cd9ba88456fef0b44ed150a9cecb52a4 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期二, 20 五月 2025 10:08:00 +0800 Subject: [PATCH] 钣金需求日期:批量导入、删除、分页列表 --- aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlatePlanController.java | 25 ------------------------- 1 files changed, 0 insertions(+), 25 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlatePlanController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlatePlanController.java index 54ca6dd..b5e7c16 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlatePlanController.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsPlate/ApsPlatePlanController.java @@ -238,29 +238,4 @@ } } - - /** - * 瀵煎叆Excel鏁版嵁 - * @param file - * @return - * @throws Exception - */ - @Operation(summary = "瀵煎叆宸ュ崟闇�姹傛棩鏈�", description = "瀵煎叆宸ュ崟闇�姹傛棩鏈�") - //@RequiresPermissions("apsPlatePlan:import") - @Log(title = "瀵煎叆宸ュ崟闇�姹傛棩鏈�", businessType = BusinessType.IMPORT) - @PostMapping("/importRequireDate") - public AjaxResult importRequireDate(MultipartFile file) throws Exception { - ExcelUtil<ApsPlateRequireDate> util = new ExcelUtil<ApsPlateRequireDate>(ApsPlateRequireDate.class); - List<ApsPlateRequireDate> plateRequireDateList = util.importExcel(file.getInputStream()); - if (!plateRequireDateList.isEmpty()) { - try { - apsPlateRequireDateService.batchSave(plateRequireDateList); - } catch (Exception e) { - throw new RuntimeException(e); - } - } else { - return AjaxResult.error("妯℃澘鍐呭涓虹┖"); - } - return AjaxResult.success("瀵煎叆鎴愬姛锛�"); - } } -- Gitblit v1.9.3