package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.system.model.HousingDemand;
|
import com.stylefeng.guns.modular.system.warpper.req.SearchHousingDemandReq;
|
import com.stylefeng.guns.modular.system.warpper.res.SearchHousingDemandListRes;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2023/11/20 16:58
|
*/
|
public interface HousingDemandMapper extends BaseMapper<HousingDemand> {
|
|
|
/**
|
* 搜索求房源列表数据
|
* @param req
|
* @param district
|
* @param saleAmountStart
|
* @param saleAmountEnd
|
* @param houseModels
|
* @param houseTypeIds
|
* @return
|
*/
|
List<SearchHousingDemandListRes> searchHousingDemand(@Param("req") SearchHousingDemandReq req,
|
@Param("district") List<Integer> district,
|
@Param("cityIds") List<Integer> cityIds,
|
@Param("saleAmountStart") Double saleAmountStart,
|
@Param("saleAmountEnd") Double saleAmountEnd,
|
@Param("houseModels") List<String> houseModels,
|
@Param("houseTypeIds") List<Integer> houseTypeIds);
|
|
|
Integer searchHousingDemandCount(@Param("req") SearchHousingDemandReq req,
|
@Param("district") List<Integer> district,
|
@Param("cityIds") List<Integer> cityIds,
|
@Param("saleAmountStart") Double saleAmountStart,
|
@Param("saleAmountEnd") Double saleAmountEnd,
|
@Param("houseModels") List<String> houseModels,
|
@Param("houseTypeIds") List<Integer> houseTypeIds);
|
|
List<SearchHousingDemandListRes> searchHousingDemand1(@Param("id") Integer id);
|
|
List<SearchHousingDemandListRes> searchHousingDemand2(@Param("ids")List<Integer> id);
|
|
}
|