package com.yuchen.saas.park.service.mapper.approve;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.entity.approve.PeopleApprove;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface PeopleApproveMapper extends BaseMapper<PeopleApprove> {
    @Select("select h.*" +
            " from people_approve h" +
            " ${ew.customSqlSegment} order by h.create_time desc")
    Page<PeopleApprove> propertyHousesPage(Page<PeopleApprove> page, @Param(Constants.WRAPPER) Wrapper<String> wrapper);

}
