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

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

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author system_generator
 * @date 2023-07-15
 */
public interface PowerStationMapper extends BaseMapper<PowerStation> {
    @UserEmpower(field ={"regional_companies_code"} ,dealerField={"a.developer_code","a.regional_companies_code","a.developer_user_id"} ,fieldConditions ={"in","in","in"}, relationship="and")
    List<PowerStationDto> queryPage(@Param("powerStationCode") String powerStationCode,
                                    @Param("ownersName")String ownersName,
                                    @Param("serviceAgent")String serviceAgent,
                                    @Param("regionalCompaniesName")String regionalCompaniesName,
                                    @Param("processStatus")String processStatus);
}
