ClassMemberMappingMapper.java 994 Bytes
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.ClassDictDO;
import com.subsidy.model.ClassMemberMappingDO;
import com.subsidy.vo.administer.ClassDailyInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 班级成员映射表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2021-10-12
 */
@Repository
public interface ClassMemberMappingMapper extends BaseMapper<ClassMemberMappingDO> {

    /**
     * 获取学生当前有效班级
     */
    List<ClassDictDO> getMemberClass(Long memberId);

    /**
     * 获取班级成员id
     */
    List<Long> getClassMembers(Long classId);

    /**
     * 获取班级成员id
     */
    IPage<ClassDailyInfoVO> getClassMembersWithName(IPage iPage, Long classId, String userName);

    /**
     * 获取学生当前有效班级
     */
    long getMemberClassCount(Long memberId);
}