From bd5af6eff63613ef4d25751d8105d2d82e2997fa Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 09 Nov 2023 21:12:25 +0800
Subject: [PATCH] 租房统计查询修改
---
src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java b/src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java
index 71195c3..b2494d1 100644
--- a/src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java
+++ b/src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java
@@ -22,10 +22,11 @@
import org.springblade.modules.house.entity.HouseRentalEntity;
import org.springblade.modules.house.entity.HouseTenantEntity;
import org.springblade.modules.house.service.IHouseTenantService;
+import org.springblade.modules.house.vo.HouseRentalStatistics;
+import org.springblade.modules.house.vo.HouseRentalTenantVO;
import org.springblade.modules.house.vo.HouseRentalVO;
import org.springblade.modules.house.mapper.HouseRentalMapper;
import org.springblade.modules.house.service.IHouseRentalService;
-import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.house.vo.HouseTenantVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -34,8 +35,8 @@
import java.util.ArrayList;
import java.util.Date;
-import java.util.Iterator;
import java.util.List;
+import java.util.Map;
import java.util.stream.Collectors;
/**
@@ -57,7 +58,7 @@
* @return
*/
@Override
- public IPage<HouseRentalVO> selectHouseRentalPage(IPage<HouseRentalVO> page, HouseRentalVO houseRental) {
+ public IPage<HouseRentalTenantVO> selectHouseRentalPage(IPage<HouseRentalTenantVO> page, HouseRentalTenantVO houseRental) {
return page.setRecords(baseMapper.selectHouseRentalPage(page, houseRental));
}
@@ -188,4 +189,16 @@
// 返回
return update && addFlag && updateFlag && removeFlag;
}
+
+ /**
+ * 获取统计数据
+ * @return
+ */
+ @Override
+ public Object getStatistics(HouseRentalTenantVO houseRental) {
+ // 查询
+ List<HouseRentalStatistics> statistics = baseMapper.getStatistics(houseRental);
+ // 返回
+ return statistics;
+ }
}
--
Gitblit v1.9.3