package com.tykj.workflowcore.workflow_editer.dao;

import com.tykj.workflowcore.workflow_editer.entity.VariableStorage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * ClassName:    VariableStorageMapper
 * Package:    com.tykj.mapper
 * Description:
 * Datetime:    2021/3/3   10:08
 *
 * @Author: zsp
 */
public interface VariableStorageMapper extends JpaRepository<VariableStorage,Integer>, JpaSpecificationExecutor<VariableStorage> {

    /**
     * 通过流程主键获取变量池
     * @param flowKey 流程主键
     * @return
     */
    List<VariableStorage> findAllByFlowKey(String flowKey);
}
