package com.qmth.themis.business.templete.service;

import org.springframework.util.LinkedMultiValueMap;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * @Description: 导入导出模版处理逻辑
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/7/31
 */
public interface TempleteLogicService {

    /**
     * 考生导入逻辑
     *
     * @param finalList
     * @param map
     * @return
     */
    public Map<String, Object> execImportExamStudentLogic(List<LinkedMultiValueMap<Integer, Object>> finalList, Map<String, Object> map) throws UnsupportedEncodingException;

    /**
     * 考场导入逻辑
     *
     * @param finalList
     * @param map
     * @return
     */
    public Map<String, Object> execImportRoomCodeLogic(List<LinkedMultiValueMap<Integer, Object>> finalList, Map<String, Object> map) throws UnsupportedEncodingException;

    /**
     * 考场导出逻辑
     *
     * @param map
     * @return
     */
    public Map<String, Object> execExportRoomCodeLogic(Map<String, Object> map);

    /**
     * 成绩简版导出逻辑
     *
     * @param map
     * @return
     */
    public Map<String, Object> execExportMarkResultSimpleLogic(Map<String, Object> map);

    /**
     * 成绩标准版导出逻辑
     *
     * @param map
     * @return
     */
    public Map<String, Object> execExportMarkResultStandardLogic(Map<String, Object> map);

    /**
     * 考生导出逻辑
     *
     * @param map
     * @return
     */
    public Map<String, Object> execExportExamStudentLogic(Map<String, Object> map);

    /**
     * 推送云阅卷数据逻辑
     *
     * @param map
     * @return
     */
    public Map<String, Object> execPushCloudMarkDataLogic(Map<String, Object> map) throws IOException;
}
