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.annotation.DataScope;
import com.zhgd.xmgl.modules.basicdata.dto.EngineeringDeviceDto;
import com.zhgd.xmgl.modules.basicdata.entity.Engineering;
import com.zhgd.xmgl.modules.basicdata.statistics.EngineeringStat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 项目工程表
 * @author： pds
 * @date：   2023-02-22
 * @version： V1.0
 */
@Mapper
@DataScope
public interface EngineeringMapper extends BaseMapper<Engineering> {

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

    List<String> getSnListByEnterprise(@Param("enterpriseSn") String enterpriseSn);

    Page<EngineeringDeviceDto> pageListForSuperior(Page page, @Param(Constants.WRAPPER) Wrapper<Engineering> wrapper);

    Page<EngineeringStat> engineeringStat(Page page, @Param(Constants.WRAPPER) Wrapper<Engineering> wrapper);
}
