package com.ruoyi.school.member.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.school.member.domain.ScStudent;
import com.ruoyi.school.member.domain.req.ReqSearchScStudent;
import com.ruoyi.school.member.domain.req.ReqStudentSelect;
import com.ruoyi.school.member.domain.resp.RespSearchStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 会员基本信息 Mapper 接口
 * </p>
 *
 * @author zhangby
 * @since 2020-04-27 07:13:40
 */
public interface ScStudentMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<ScStudent> {

    List<RespSearchStudent> selectForSearchTable(@Param("reqSearchScStudent")ReqSearchScStudent reqSearchScStudent, @Param("page")Page page);

    List<RespSearchStudent> selectForSelect(@Param("studentSelect") ReqStudentSelect studentSelect, @Param("page") Page page);

    /**
     * 全部会员
     * @param reqSearchScStudent
     * @return
     */
    List<RespSearchStudent> selectAllStudent(ReqSearchScStudent reqSearchScStudent);

    /**
     * 会员数量
     * @param reqDeptCondition
     * @return
     */
//    Integer selectStudentCount(ReqDeptCondition reqDeptCondition);

    /**
     * 租户下会员数量
     * @param tenantId
     * @return
     */
    @SqlParser(filter = true)
    Integer selectTenantStudentCount(String tenantId);
}
