zhongrj
2023-11-09 bd5af6eff63613ef4d25751d8105d2d82e2997fa
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;
   }
}