package com.casic.missiles.modular.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.casic.missiles.core.datascope.DataScope;
import com.casic.missiles.modular.system.dto.BusWellInfoDto;
import com.casic.missiles.modular.system.dto.UserDTO;
import com.casic.missiles.modular.system.dto.WellDTO;
import com.casic.missiles.modular.system.model.Group;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lwh123
 * @since 2020-03-20
 */
public interface GroupMapper extends BaseMapper<Group> {
    List<BusWellInfoDto> noGroupWellList(@Param("page") Page<BusWellInfoDto> page,
                                         @Param("scope") DataScope dataScope,
                                         @Param("keywords") String keywords,
                                         @Param("wellType") String wellType);

    List<Group> selectPageList(@Param("page") Page<Group> page,
                               @Param("scope") DataScope dataScope,
                               @Param("keywords") String keywords,
                               @Param("maxLength") String maxLength);

    List<UserDTO> userList(@Param("page") Page<UserDTO> page,
                           @Param("scope") DataScope dataScope,
                           @Param("groupId") String groupId);

    List<WellDTO> wellList(@Param("page") Page<WellDTO> page,
                           @Param("scope") DataScope dataScope,
                           @Param("groupId") String groupId);
}
