MemberServiceImpl.java 1.01 KB
package com.subsidy.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subsidy.dto.member.AcademyMembersDTO;
import com.subsidy.model.MemberDO;
import com.subsidy.mapper.MemberMapper;
import com.subsidy.service.MemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subsidy.vo.member.AcademyMembersVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学生表 服务实现类
 * </p>
 *
 * @author Tuyp
 * @since 2024-01-11
 */
@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> implements MemberService {

    public IPage<AcademyMembersVO> academyMembers(AcademyMembersDTO academyMembersDTO) {
        Page pager = new Page(academyMembersDTO.getPageNum(), academyMembersDTO.getPageSize());
        return this.baseMapper.academyMembers(pager,academyMembersDTO.getUserName(),academyMembersDTO.getPracticeStatus(),academyMembersDTO.getAcademyId());
    }

}