package com.patzn.lims.res.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.res.entity.LmsUserRelGroup;
import com.patzn.lims.res.vo.LmsUserRelGroupVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户关联组表 Mapper 接口
 * </p>
 *
 * @author patzn
 * @since 2018-03-28
 */
public interface LmsUserRelGroupMapper extends BaseMapper<LmsUserRelGroup> {

    @SqlParser(filter = true)
    List<LmsUserRelGroup> pageForDistinct(Page page, @Param("ug") LmsUserRelGroup lmsUserRelGroup);

    List<LmsUserRelGroup> getUserByleader();

    @SqlParser(filter = true)
    List<LmsUserRelGroup> selectRelGroups(Page page, @Param("vo") LmsUserRelGroupVO vo);

}
