package com.admin.major.service.impl;

import java.util.List;

import com.admin.major.domain.dto.SummaryApplyDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.admin.common.utils.SecurityUtils;
import com.admin.common.utils.uuid.IdUtils;
import com.admin.major.mapper.SummaryApplyMapper;
import com.admin.major.domain.SummaryApply;
import com.admin.major.service.ISummaryApplyService;

/**
 * 学生志愿填报情况汇总Service业务层处理
 * 
 * @author zewei
 * @date 2022-03-30
 */
@Service
public class SummaryApplyServiceImpl implements ISummaryApplyService 
{
    @Autowired
    private SummaryApplyMapper summaryApplyMapper;

    @Override
    public List<SummaryApplyDTO> viewSummaryApply(SummaryApplyDTO summaryApply)
    {
        return summaryApplyMapper.viewSummaryApply(summaryApply);
    }

    /**
     * 查询学生志愿填报情况汇总
     *
     * @param studentNo 学生志愿填报情况汇总主键
     * @return 学生志愿填报情况汇总
     */
    @Override
    public SummaryApplyDTO selectSummaryApplyByStudentNo(String studentNo)
    {
        return summaryApplyMapper.selectSummaryApplyByStudentNo(studentNo);
    }

    /**
     * 修改学生志愿填报情况汇总
     *
     * @param summaryApplyDTO 学生志愿填报情况汇总
     * @return 结果
     */
    @Override
    public int updateSummaryApply(SummaryApplyDTO summaryApplyDTO)
    {
        return summaryApplyMapper.updateSummaryApply(summaryApplyDTO);
    }
}
