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

import com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower;
import com.yeejoin.amos.boot.module.hygf.api.dto.JpInverterDto;
import com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto;
import com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 户用光伏监盘逆变器表 Mapper 接口
 *
 * @author system_generator
 * @date 2023-09-19
 */
public interface JpInverterMapper extends BaseMapper<JpInverter> {

    List<Map<String,Object>> queryInverterCountStatus(@Param("dto") JpStationDto reviewDto);

    @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in","in"} ,relationship="and")
    List<JpInverterDto> selectPageData(@Param("dto") JpInverterDto reviewDto, int current, int size);

    @UserEmpower(field ={"regional_companies_code","amos_company_code"} ,fieldConditions ={"in","in"} ,relationship="and")
    int  selectPageDataTotal(@Param("dto") JpInverterDto reviewDto);
}
