package cn.com.countrygarden.bi.main.service.excontract;


import cn.com.countrygarden.bi.main.model.excontract.ContractRecord;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @program: DPshow_depart
 * @description: 委外合同管理服务类
 * @author: SignV
 * @create: 2018-09-05 13:12
 **/
public interface ExContractService {

    /*----------------------------------------供应商月度考核部分  start-----------------------------------------------*/

    JSONObject getRecordList(int page, int pageSize, List<String> organCodeList);

    JSONObject getRecordListByCondition(List<String> organCodeList,String commname,String supplierName,
                                                  String year,String month,String exCode,int page,int pageSize,boolean isPage);
    void deleteRecord(int recordId,String exCode,String userCode);

    /*----------------------------------------供应商月度考核部分  end-----------------------------------------------*/


    /*----------------------------------------考核详细部分  start-----------------------------------------------*/

    ContractRecord getDataDetail(int recordId, String exCode);

    void saveOrUpdateRecord(String record, String exCode, Integer operaType,String userCode) throws Exception;

    List<JSONObject> getAuthDetails(String code, int codeType);

    /*----------------------------------------考核详细部分  end-----------------------------------------------*/


    /*----------------------------------------Excel导入导出部分  start-----------------------------------------------*/

    void exportExContractExcel(HttpServletResponse response,List<String> organCodeList, String commname, String supplierName,
                               String year, String month, String exCode);

    void importExContractExcel(MultipartFile multipartFile, Map<String,String> organMap, String exCode , String userCode) throws Exception;

    void downloadExContractExcel(HttpServletResponse response,String exCode);

    /*----------------------------------------Excel导入导出部分  end-----------------------------------------------*/

}
