package com.artfess.bpm.persistence.dao;

import com.artfess.bpm.persistence.model.BpmSaveOpinion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 *  审批意见暂存表 Mapper 接口
 *
 * @company 阿特菲斯信息技术有限公司
 * @author chens
 * @since 2020-08-24
 */
public interface BpmSaveOpinionDao extends BaseMapper<BpmSaveOpinion> {

    /**
     * 通过流程实例ID和任务ID获取审批意见
     * @param params
     * @return
     */
    BpmSaveOpinion getBpmSaveOpinionByTeam(@Param("map") Map<String,Object> params);

    /**
     * 通过流程实例ID和任务ID修改审批意见
     * @param params
     */
    void updateBpmSaveOpinionByTeam(@Param("map") Map<String,Object> params);
}
