package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.system.model.HouseResource;
|
import com.stylefeng.guns.modular.system.warpper.req.HouseQuery;
|
import com.stylefeng.guns.modular.system.warpper.req.SearchHouseResourceReq;
|
import com.stylefeng.guns.modular.system.warpper.req.UserInfoQuery;
|
import com.stylefeng.guns.modular.system.warpper.res.CollectListRes;
|
import com.stylefeng.guns.modular.system.warpper.res.DistrictHouseResourceNumberRes;
|
import com.stylefeng.guns.modular.system.warpper.res.SearchHouseResourceListRes;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2023/11/8 15:09
|
*/
|
public interface HouseResourceMapper extends BaseMapper<HouseResource> {
|
|
|
/**
|
* 获取房源列表数据
|
* @param req
|
* @return
|
*/
|
List<SearchHouseResourceListRes> searchHouseResource(@Param("req") SearchHouseResourceReq req, @Param("cityIds") List<Integer> cityIds,
|
@Param("districtIds") List<Integer> districtIds,
|
@Param("saleAmountStart") Double saleAmountStart, @Param("saleAmountEnd") Double saleAmountEnd,
|
@Param("houseModels") List<String> houseModels, @Param("houseTypeIds") List<Integer> houseTypeIds);/**
|
* 获取房源列表数据
|
* @param req
|
* @return
|
*/
|
List<SearchHouseResourceListRes> searchHouseResource1(@Param("req") SearchHouseResourceReq req, @Param("cityIds") List<Integer> cityIds,
|
@Param("districtIds") List<Integer> districtIds,
|
@Param("saleAmountStart") Double saleAmountStart, @Param("saleAmountEnd") Double saleAmountEnd,
|
@Param("houseModels") List<String> houseModels, @Param("houseTypeIds") List<Integer> houseTypeIds);
|
|
|
/**
|
* 获取房源列表总数量
|
* @param req
|
* @param saleAmountStart
|
* @param saleAmountEnd
|
* @param houseModels
|
* @param houseTypeIds
|
* @return
|
*/
|
Integer searchHouseResourceCount(@Param("req") SearchHouseResourceReq req, @Param("cityIds") List<Integer> cityIds,
|
@Param("districtIds") List<Integer> districtIds,
|
@Param("saleAmountStart") Double saleAmountStart, @Param("saleAmountEnd") Double saleAmountEnd,
|
@Param("houseModels") List<String> houseModels, @Param("houseTypeIds") List<Integer> houseTypeIds);
|
|
|
/**
|
* 获取行政区域房源数量
|
* @param userType
|
* @param dataType
|
* @return
|
*/
|
List<DistrictHouseResourceNumberRes> getDistrictHouseResourceNumber(@Param("userType") Integer userType, @Param("dataType") Integer dataType);
|
|
List<SearchHouseResourceListRes> listHouse(@Param("query") HouseQuery query);
|
|
List<CollectListRes> collect(@Param("id") Integer id);
|
|
List<CollectListRes> release(@Param("query") UserInfoQuery query,@Param("ids")List<Integer> collect);
|
|
}
|