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/IUserHouseLabelService.java | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springblade/modules/house/service/IUserHouseLabelService.java b/src/main/java/org/springblade/modules/house/service/IUserHouseLabelService.java index b557208..c996893 100644 --- a/src/main/java/org/springblade/modules/house/service/IUserHouseLabelService.java +++ b/src/main/java/org/springblade/modules/house/service/IUserHouseLabelService.java @@ -16,11 +16,12 @@ */ package org.springblade.modules.house.service; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; import org.springblade.modules.house.dto.UserHouseLabelDTO; import org.springblade.modules.house.entity.UserHouseLabelEntity; +import org.springblade.modules.house.excel.UserHouseLabelExcel; import org.springblade.modules.house.vo.HouseholdLabelVO; -import com.baomidou.mybatisplus.core.metadata.IPage; import java.util.List; @@ -43,11 +44,32 @@ /** * 住户-标签 自定义新增或修改 + * * @param householdLabel * @return */ - boolean saveOrUpdateHouseholdLabel(UserHouseLabelEntity householdLabel); + boolean saveOrUpdateHouseholdLabel(UserHouseLabelEntity householdLabel); List<Integer> selectUserLabelList(UserHouseLabelDTO userHouseLabelDTO); + + void importUserHouseLabel(List<UserHouseLabelExcel> data, Boolean isCovered); + + IPage<HouseholdLabelVO> statisticalLabels(IPage<HouseholdLabelVO> page, HouseholdLabelVO householdLabel); + + IPage<HouseholdLabelVO> getCommunityStatisticalLabels(IPage<HouseholdLabelVO> page, HouseholdLabelVO householdLabel); + + /** + * 房屋-标签 房屋自定义新增或修改 + * @param householdLabel + * @return + */ + boolean saveOrUpdateHouseLabel(UserHouseLabelEntity householdLabel); + + /** + * 查询对应的label集合信息 + * @param labelName + * @return + */ + List<UserHouseLabelEntity> getLabelList(String labelName); } -- Gitblit v1.9.3