package com.qmth.sop.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.sop.business.entity.TFCustomFlow;
import com.qmth.sop.common.enums.TFCustomTypeEnum;

import java.util.List;

/**
 * <p>
 * 自定义流程表 服务类
 * </p>
 *
 * @author wangliang
 * @since 2023-07-17
 */
public interface TFCustomFlowService extends IService<TFCustomFlow> {

    /**
     * 查询版本号
     *
     * @param orgId
     * @param flowName
     * @param type
     * @return
     */
    TFCustomFlow findMaxVersion(Long orgId, String flowName, TFCustomTypeEnum type);

    /**
     * 查询流程部署信息
     *
     * @return
     */
    List<TFCustomFlow> findFlowDeploymentList();

    /**
     * 获取流程版本信息
     *
     * @param type
     * @return
     */
    List<TFCustomFlow> findFlowVersion(TFCustomTypeEnum type);
}
