package com.yunzhi.marketing.xlk.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunzhi.marketing.base.ResponseBean;
import com.yunzhi.marketing.entity.TaCheckin;
import com.yunzhi.marketing.xlk.entity.SearchHouse;
import com.yunzhi.marketing.xlk.mapper.SearchHouseMapper;
import com.yunzhi.marketing.xlk.service.ISearchHouseService;
import com.yunzhi.marketing.xlk.vo.SearchHouseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 帮我找房  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-05-19
 */
@Service
public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, SearchHouse> implements ISearchHouseService {

    @Autowired
    private SearchHouseMapper searchHouseMapper;

    /**
     * 查询我的找房需求列表
     *
     *
     * @param pg
     * @param searchHouse
     * @return
     */
    @Override
    public ResponseBean selectSearchHouseList(IPage<SearchHouseVO> pg, SearchHouseVO searchHouse) {
        IPage<SearchHouseVO> result = searchHouseMapper.selectSearchHouseList(pg,searchHouse);
        return ResponseBean.success(result);
    }

    @Override
    public SearchHouseVO selectSearchHouseDetail(String id) {
        return searchHouseMapper.selectSearchHouseDetail(id);
    }
}
