feat (farm): 租户导入/出
-
This commit is contained in:
@@ -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,7 +117,9 @@ public class PlotInfoController {
|
||||
|
||||
@PostMapping("/plot-lessee/import-excel")
|
||||
@Operation(summary = "导入户主 Excel")
|
||||
@ApiAccessLog(operateType = IMPORT)
|
||||
@Parameters({
|
||||
@Parameter(name = "file", description = "Excel 文件", required = true),
|
||||
})
|
||||
public CommonResult<Boolean> importPlotLesseeInfoExcel(@RequestParam("file") MultipartFile file) throws IOException {
|
||||
List<PlotLesseeForImportExcelRespVO> list = ExcelUtils.read(file, PlotLesseeForImportExcelRespVO.class);
|
||||
plotInfoService.setPlotLesseeInfo(list);
|
||||
|
||||
Reference in New Issue
Block a user