package com.qmth.distributed.print.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.distributed.print.business.entity.TFFlowJoin;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 考试任务和流程关联表 服务类
 * </p>
 *
 * @author wangliang
 * @since 2021-11-22
 */
public interface TFFlowJoinService extends IService<TFFlowJoin> {

    /**
     * 保存或更新TExamTaskFlow
     *
     * @param map
     */
    public boolean saveOrUpdate(Map<String, Object> map);

    /**
     * 根据实体id查找
     *
     * @param objectId
     * @return
     */
    public List<TFFlowJoin> findByObjectId(Long objectId);

    /**
     * 根据流程id查找
     *
     * @param flowId
     * @return
     */
    public TFFlowJoin findByFlowId(Long flowId);

    /**
     * 根据自定义流程实体id查询
     *
     * @param flowEntityId
     * @return
     */
    public List<TFFlowJoin> findByFlowEntityId(Long flowEntityId);
}
