package com.sundot.airport.system.service.approval;

import java.util.List;

import com.sundot.airport.system.domain.approval.ApprovalWorkflowDefinition;

/**
 * 审批流程定义Service接口
 *
 * @author simon lin
 * @date 2025-09-06
 */
public interface IApprovalWorkflowService {
    /**
     * 查询审批流程定义
     *
     * @param id 审批流程定义主键
     * @return 审批流程定义
     */
    ApprovalWorkflowDefinition selectApprovalWorkflowDefinitionById(Long id);

    /**
     * 根据流程代码查询审批流程定义
     *
     * @param workflowCode 流程代码
     * @return 审批流程定义
     */
    ApprovalWorkflowDefinition selectApprovalWorkflowDefinitionByCode(String workflowCode);

    /**
     * 根据流程类型查询审批流程定义列表
     *
     * @param workflowType 流程类型
     * @return 审批流程定义列表
     */
    List<ApprovalWorkflowDefinition> selectApprovalWorkflowDefinitionByType(String workflowType);

    /**
     * 查询审批流程定义列表
     *
     * @param approvalWorkflowDefinition 审批流程定义
     * @return 审批流程定义集合
     */
    List<ApprovalWorkflowDefinition> selectApprovalWorkflowDefinitionList(ApprovalWorkflowDefinition approvalWorkflowDefinition);

    /**
     * 新增审批流程定义
     *
     * @param approvalWorkflowDefinition 审批流程定义
     * @return 结果
     */
    int insertApprovalWorkflowDefinition(ApprovalWorkflowDefinition approvalWorkflowDefinition);

    /**
     * 修改审批流程定义
     *
     * @param approvalWorkflowDefinition 审批流程定义
     * @return 结果
     */
    int updateApprovalWorkflowDefinition(ApprovalWorkflowDefinition approvalWorkflowDefinition);

    /**
     * 批量删除审批流程定义
     *
     * @param ids 需要删除的审批流程定义主键集合
     * @return 结果
     */
    int deleteApprovalWorkflowDefinitionByIds(Long[] ids);

    /**
     * 删除审批流程定义信息
     *
     * @param id 审批流程定义主键
     * @return 结果
     */
    int deleteApprovalWorkflowDefinitionById(Long id);
}