package com.bonus.material.ma.service;


import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.material.ma.domain.DirectApplyExportInfo;
import com.bonus.material.ma.domain.DirectApplyInfo;
import com.bonus.material.ma.domain.DirectApplyInfoDetails;
import com.bonus.material.settlement.domain.SltAgreementInfo;

import java.sql.SQLException;
import java.util.List;

/**
* @description  直转申请
* @author hay
* @date   2025/2/17 19:32
*/
public interface DirectRotationService {

    /**
    * 根据协议Id查询在用数据
    * @param sltAgreementInfo
    * @return List<SltAgreementInfo>
    */
    List<SltAgreementInfo> getUseringData(SltAgreementInfo sltAgreementInfo);

    /**
     * 直转记录查询列表
     * @param directApplyInfo
     * @return
     */
    List<DirectApplyExportInfo> getList(DirectApplyInfo directApplyInfo);

    /**
     * 新增直转申请
     * @param directApplyInfoDetails
     * @return
     */
    AjaxResult submit(DirectApplyInfoDetails directApplyInfoDetails) throws SQLException;

    /**
     * 查看详情
     * @param sltAgreementInfo
     * @return
     */
    DirectApplyInfo getInfoById(SltAgreementInfo sltAgreementInfo);

    /**
     * 查看详情
     * @param sltAgreementInfo
     * @return
     */
    DirectApplyInfo getInfoApp(SltAgreementInfo sltAgreementInfo);

    /**
     * 修改直转申请
     * @param directApplyInfoDetails
     * @return
     */
    AjaxResult edit(DirectApplyInfoDetails directApplyInfoDetails);

    /**
     * 删除直转申请
     * @param id
     * @return
     */
    int delData(Long id);

    /**
     * 查询规格型号对应数据
     * @param bean
     * @return
     */
    AjaxResult getTypeNameList(SltAgreementInfo bean);

    /**
     * 直转提交
     * @param directApplyInfoDetails
     * @return
     */
    AjaxResult submitNew(DirectApplyInfoDetails directApplyInfoDetails);
}
