package com.bonus.material.lossAssessment.service;


import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.material.repair.domain.RepairPartDetails;
import com.bonus.material.repair.domain.RepairTask;
import com.bonus.material.repair.domain.RepairTaskDetails;
import com.bonus.material.repair.domain.vo.RepairDeviceSummaryVo;
import com.bonus.material.repair.domain.vo.RepairDeviceVO;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * @author hay
 */
public interface LossAssessmentService {


    /**
     * 获取定损任务列表
     * @param bean
     * @return
     */
    List<RepairTask> getLossAssessmentList(RepairTask bean);

    /**
     * 定损详情列表
     * @param bean
     * @return
     */
    List<RepairDeviceSummaryVo> getLossAssessmentDetailsList(RepairTaskDetails bean);

    /**
     * 定损完成
     * @param list
     * @return
     */
    AjaxResult batchLossAssessmentApply(@NotNull List<RepairDeviceVO> list);

    /**
     * 定损提交
     * @param taskList
     * @return
     */
    AjaxResult endLossAssessmentTask(ArrayList<RepairTask> taskList);

    /**
     * 驳回至退料
     * @param bean
     * @return
     */
    AjaxResult rejectRepair(RepairTask bean);

    /**
     * 获取详情的详情
     * @param bean
     * @return
     */
    List<RepairPartDetails> getDetailsListApp(RepairPartDetails bean);

    /**
     * 定损取消，推至维修
     * @param bean
     * @return
     */
    AjaxResult gotoRepair(RepairDeviceVO bean);
}
