package com.njzscloud.supervisory.station.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.station.pojo.entity.StationManageEntity;
import com.njzscloud.supervisory.station.pojo.param.SearchStationManageParam;
import com.njzscloud.supervisory.station.pojo.result.SearchStationManageResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 站点管理员
 */
@Mapper
public interface StationManageMapper extends BaseMapper<StationManageEntity> {

    IPage<SearchStationManageResult> paging(Page<Object> page, @Param("ew") QueryWrapper<SearchStationManageParam> ew);

    List<SearchStationManageResult> myStation(@Param("ew") QueryWrapper<Object> ew);

    List<SearchStationManageResult> listManager(@Param("ew") QueryWrapper<Object> ew);

    List<Long> myManage(@Param("ew") QueryWrapper<Object> ew);

    List<SearchStationManageResult> adminStation();

}
