package com.admin.major.manager;

import com.admin.major.service.IEnhanceStudentInfoService;
import com.admin.major.service.IMajorApplyService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author liangjunxing
 * @date 2022/6/24 0024
 */
@Service
@AllArgsConstructor
public class MajorAuditManager {

    private IMajorApplyService majorApplyService;
    private IEnhanceStudentInfoService enhanceStudentInfoService;

    /**
     * 控制分流结果发布
     * @param year
     * @param collegeId
     */
    public void audit(String year,Long collegeId){
        // 更新分流信息到学生表
        enhanceStudentInfoService.updateStudentMajor(year,collegeId);
        // 更新分流审核结果 todo 仅全部修改，细粒度不高，有必要再修改
        majorApplyService.updateMajorApplyStatus(year,collegeId);
    }
}
