package com.huigou.bpm.management.repository;

import com.huigou.bpm.management.domain.model.ProcessDeployment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author yonghuan
 */
public interface ProcessDeploymentRepository extends JpaRepository<ProcessDeployment, String>, JpaSpecificationExecutor<ProcessDeployment> {

    ProcessDeployment findByActProcdefId(String actProcdefId);

    List<ProcessDeployment> findByCodeAndStatus(String code, Integer status);
}
