package com.yanzhu.flowable.service;

import com.yanzhu.flowable.domain.my.FlowTaskEntity;

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

/**
 * @author JiangYuQi
 * @date 2021-04-03 14:41
 */
public interface IFlowBusinessKeyService {

    /**
     * 根据条件查询所有流任务
     * @param flowTaskEntity
     * @return
     */
    public List<FlowTaskEntity> selectAllFlowTaskByParams(FlowTaskEntity flowTaskEntity);

    /**
     * 根据条件统计所有流任务
     * @param flowTaskEntity
     * @return
     */
    public Map<String,Object> quueryCount(FlowTaskEntity flowTaskEntity);

    /**
     * 根据条件流程Id查询操作日志
     * @param procInsId
     * @return
     */
    public List<Map<String, Object>> selectCommentByProcInsId(String procInsId);

    /**
     * 根据流程Id查询表单数据
     * @param procInsId
     * @return
     */
    public Map<String, Object> selectFormDatasByProcInsId(String procInsId);

    /**
     * 查询我的代办任务
     * @param flowTaskEntity
     * @return
     */
    public List<Map<String, Object>> selectMyAwaitFlowTask(FlowTaskEntity flowTaskEntity);

    /**
     * 查询我的已办任务
     * @param flowTaskEntity
     * @return
     */
    public List<Map<String, Object>> selectMyFinishedFlowTask(FlowTaskEntity flowTaskEntity);

}
