From f0a3c07dd04bf287e55d59383816a930a5169f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=BE=E5=AF=8C=E6=96=8C?= Date: Thu, 23 Oct 2025 19:28:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=20(farm):=20=E7=A7=9F=E6=88=B7=E5=AF=BC?= =?UTF-8?q?=E5=85=A5/=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - --- .../managementcenter/baseinfo/PlotInfoController.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/managementcenter/baseinfo/PlotInfoController.java b/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/managementcenter/baseinfo/PlotInfoController.java index 149a3f78..51444d5b 100644 --- a/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/managementcenter/baseinfo/PlotInfoController.java +++ b/yudao-module-farm/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/managementcenter/baseinfo/PlotInfoController.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.farm.controller.admin.managementcenter.baseinfo; import cn.iocoder.yudao.module.farm.controller.admin.managementcenter.baseinfo.vo.*; +import io.swagger.v3.oas.annotations.Parameters; import org.springframework.web.bind.annotation.*; import jakarta.validation.Valid; import jakarta.servlet.http.HttpServletResponse; @@ -116,8 +117,10 @@ public class PlotInfoController { @PostMapping("/plot-lessee/import-excel") @Operation(summary = "导入户主 Excel") - @ApiAccessLog(operateType = IMPORT) - public CommonResult importPlotLesseeInfoExcel(@RequestParam("file")MultipartFile file) throws IOException { + @Parameters({ + @Parameter(name = "file", description = "Excel 文件", required = true), + }) + public CommonResult importPlotLesseeInfoExcel(@RequestParam("file") MultipartFile file) throws IOException { List list = ExcelUtils.read(file, PlotLesseeForImportExcelRespVO.class); plotInfoService.setPlotLesseeInfo(list); return success(true);