package com.yeejoin.amos.boot.module.hygf.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower;
import com.yeejoin.amos.boot.module.hygf.api.dto.AcceptanceDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AcceptanceMapper extends BaseMapper<BaseEntity> {
    /**
     * 分页查询验收列表数据
     *
     * @param page          分页对象
     * @param acceptanceDto 查询参数
     * @return 分页结果
     */
    @UserEmpower(field = {"ph.regional_companies_code"}, dealerField={"ph.developer_code","ph.regional_companies_code","ph.developer_user_id"},fieldConditions = {"in","in","in"}, relationship = "and")
    List<AcceptanceDto> page(

            @Param("param") AcceptanceDto acceptanceDto
    );
}
