linwe
2023-11-10 cd0cc8910180826a92451c44a55c2799d7cdca81
src/main/java/org/springblade/modules/house/service/impl/HouseRentalServiceImpl.java
@@ -36,6 +36,7 @@
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
@@ -189,8 +190,28 @@
      return update && addFlag && updateFlag && removeFlag;
   }
   /**
    * 获取统计数据
    * @return
    */
   @Override
   public List<HouseRentalStatistics> getStatistics() {
      return baseMapper.getStatistics();
   public Object getStatistics(HouseRentalTenantVO houseRental) {
      // 查询
      List<HouseRentalStatistics> statistics = baseMapper.getStatistics(houseRental);
      // 返回
      return statistics;
   }
   /**
    * 出租屋 确认
    * @param houseRental
    * @return
    */
   @Override
   public Boolean confirmHouseRental(HouseRentalVO houseRental) {
      // 修改状态
      houseRental.setUpdateTime(new Date());
      // 修改
      return updateById(houseRental);
   }
}