package com.miaxis.tms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miaxis.common.annotation.DataSource;
import com.miaxis.common.enums.DataSourceTypeEnum;
import com.miaxis.tms.dto.TmsStudentInfoDTO;
import com.miaxis.tms.dto.TmsStudentInfoIdDTO;
import com.miaxis.tms.dto.TmsStudentInfoQrDTO;
import com.miaxis.tms.mapper.TmsStudentInfoMapper;
import com.miaxis.tms.service.ITmsStudentInfoService;
import com.miaxis.tms.vo.TmsStudentInfoIdVo;
import com.miaxis.tms.vo.TmsStudentInfoVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 学员基本信息表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-09
 */
@Service
@DataSource(value = DataSourceTypeEnum.NEWGZPT)
public class TmsStudentInfoServiceImpl extends ServiceImpl<TmsStudentInfoMapper, TmsStudentInfoVo> implements ITmsStudentInfoService {


    @Resource
    TmsStudentInfoMapper mapper;


    @Override
    public List<TmsStudentInfoVo> getTmsStudentInfoList(TmsStudentInfoDTO studentInfoDto) {
       List<TmsStudentInfoVo> list =  mapper.getTmsStudentInfoList(studentInfoDto);
        return list;
    }

    @Override
    public TmsStudentInfoIdVo getTmsStudentInfoById(TmsStudentInfoIdDTO stuIdDTO) {
        return mapper.getTmsStudentInfoById(stuIdDTO);
    }

    @Override
    public int upStuAppCoachIdById(TmsStudentInfoQrDTO studentInfoQrDTO) {
        return mapper.upStuAppCoachIdById(studentInfoQrDTO);
    }


}
