package com.zhongdao.jlr.business.service;

import com.util.Vo;
import com.zhongdao.jlr.business.vo.UserOrderViewVO;
import net.sf.json.JSONArray;
import org.json.JSONObject;

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

/**
 * 接口
 */
public interface CasesListService {

    /**
     * 救援工单信息
     *
     * @param
     * @return 用户信息
     */
    Vo casesListService(String state,HttpServletRequest request, String caseCode, String frame_code, String
            rescueState,  String createTime, String finishTime, String companyName,String plateNumber);

    /***
     * 获取进店救援案件信息
     * @param request
     * @param caseCode
     * @param frame_code
     * @param createTime
     * @param finishTime
     * @return
     */
    Vo caseEnterQuery(String state,HttpServletRequest request,String caseCode,String frame_code,String createTime,String finishTime);

    /****
     * 获取案件详情信息
     * @return
     */
    Vo caseEnterInfo(HttpServletRequest request,String caseCode,String tid);

    /*
    * 故障三级信息
    */
    JSONObject getTroubleCode(HttpServletRequest request) throws Exception;

    /*
    * 详细页面保存
    */
    JSONObject caseDetailSave(HttpServletRequest request) throws Exception;

    /*
    * 导出报表
    */
    JSONObject exportData(HttpServletRequest request) throws Exception;

    /*
    * 导出报表CSV格式
    */
    JSONObject exportCSVData(HttpServletRequest request,HttpServletResponse response) throws Exception;

    /*
    * 求援完成确认
    */
    net.sf.json.JSONObject completionOfRescue(String code) throws Exception;
}
