package com.mosquito.project.permission;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 审批历史Repository
 */
@Repository
public interface ApprovalHistoryRepository extends JpaRepository<SysApprovalHistory, Long> {

    List<SysApprovalHistory> findByRecordIdOrderByNodeIndexDesc(Long recordId);

    List<SysApprovalHistory> findByApproverId(Long approverId);
}
