package com.jwipc.finance.logic;

import com.jwipc.finance.dto.InvoicedApplyApproveDTO;
import com.jwipc.finance.model.query.IaApproveQuery;
import com.jwipc.page.PageView;
import com.jwipc.security.dto.CurrentUserDTO;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/3/6 11:07
 * @desc
 */
public interface InvoicedApplyApproveLogic {
    PageView selectDataByQuery(IaApproveQuery query);
    List<InvoicedApplyApproveDTO> selectDataListByQuery(IaApproveQuery query);
    /**
     * 添加开票申请单审批记录
     *
     * @param iaId 开票申请单ID
     * @param iaNo 开票申请单号
     * @param approveResult 审批结果 0:拒绝 1:同意
     * @param approveOpinion 审批意见
     * @param approveNode 审批节点 1:采购节点 2:财务节点
     * @param user 当前操作人
     * @return 结果
     */
    boolean addApproveRecord(Long iaId, String iaNo, Integer approveResult, String approveOpinion, Integer approveNode, CurrentUserDTO user);

}
