package com.zhgd.xmgl.modules.basicdata.mapper;

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.zhgd.xmgl.modules.basicdata.dto.ProjectDeviceDto;
import com.zhgd.xmgl.modules.basicdata.dto.ProjectDto;
import com.zhgd.xmgl.modules.basicdata.entity.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 项目信息
 * @author： pds
 * @date：   2023-02-15
 * @version： V1.0
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {

    Page<ProjectDto> getPageList(Page page, @Param(Constants.WRAPPER) Wrapper<Project> wrapper);

    List<String> getSnListForGov(@Param("governmentSn") String governmentSn);

    Page<ProjectDeviceDto> pageListByGov(Page page, @Param(Constants.WRAPPER) Wrapper<Project> wrapper);
}
