From 2f2115a19277620bb7d9ac4af1e3bfd7830d2e6c Mon Sep 17 00:00:00 2001 From: linwe <872216996@qq.com> Date: Fri, 12 Jul 2024 11:20:51 +0800 Subject: [PATCH] limit 是空时候,全表查询了,会导致内存溢出 默认设置20 --- src/main/java/org/springblade/modules/house/service/IHouseTenantService.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/springblade/modules/house/service/IHouseTenantService.java b/src/main/java/org/springblade/modules/house/service/IHouseTenantService.java index 5f9f0f0..6afdbdb 100644 --- a/src/main/java/org/springblade/modules/house/service/IHouseTenantService.java +++ b/src/main/java/org/springblade/modules/house/service/IHouseTenantService.java @@ -18,9 +18,13 @@ import com.baomidou.mybatisplus.extension.service.IService; import org.springblade.modules.house.entity.HouseTenantEntity; +import org.springblade.modules.house.excel.ExportHouseTenantExcel; +import org.springblade.modules.house.excel.HouseTenantExcel; import org.springblade.modules.house.vo.HouseTenantVO; import org.springblade.core.mp.base.BaseService; import com.baomidou.mybatisplus.core.metadata.IPage; + +import java.util.List; /** * 租户管理 服务类 @@ -39,5 +43,18 @@ */ IPage<HouseTenantVO> selectHouseTenantPage(IPage<HouseTenantVO> page, HouseTenantVO houseTenant); + /** + * 根据租房id删除租户信息 + * @param id + * @return + */ + int removeByHousingRentalId(Long id); + /** + * 导出租客 + * @return + */ + List<ExportHouseTenantExcel> export(); + + String importUserTenant(List<HouseTenantExcel> read, boolean b); } -- Gitblit v1.9.3