package cn.reghao.autodop.dmaster.app.db.repository;

import cn.reghao.autodop.dmaster.app.model.po.AppDeploying;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author reghao
 * @date 2021-05-24 15:20:24
 */
public interface AppDeployingRepository
        extends JpaRepository<AppDeploying, Integer>, JpaSpecificationExecutor<AppDeploying> {
    List<AppDeploying> findByAppId(String appId);
    AppDeploying findByAppIdAndMachineId(String appId, String machineId);
}
