package com.srs.comprehensive.service.impl;

import com.srs.comprehensive.domain.CphStudentDetailExport;
import com.srs.comprehensive.domain.SrsStudent;
import com.srs.comprehensive.mapper.CphStudentDetailExportMapper;
import com.srs.comprehensive.service.ICphStudentDetailExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学生查新详情导出服务实现类
 */
@Service
public class CphStudentDetailExportServiceImpl implements ICphStudentDetailExportService {

    @Autowired
    private CphStudentDetailExportMapper cphStudentDetailExportMapper;

    @Override
    public List<CphStudentDetailExport> getStudentDetailExportList(SrsStudent srsStudent) {
        // 直接调用Mapper查询，使用SQL聚合处理数据
        return cphStudentDetailExportMapper.selectStudentDetailExportList(srsStudent);
    }

    @Override
    public CphStudentDetailExport getStudentDetailExportByStuNo(String stuNo) {
        // 直接调用Mapper查询，使用SQL聚合处理数据
        return cphStudentDetailExportMapper.selectStudentDetailExportByStuNo(stuNo);
    }
}
