package com.qmth.sop.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.sop.business.bean.result.FlowTaskSmsResult;
import com.qmth.sop.business.bean.result.WorkTaskResult;
import com.qmth.sop.business.entity.TSJobRemind;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 任务提醒表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2023-08-16
 */
public interface TSJobRemindMapper extends BaseMapper<TSJobRemind> {

    /**
     * 获取流程任务发送短信内容
     *
     * @param id
     * @return
     */
    FlowTaskSmsResult getFlowTaskRemindSmsInfo(@Param("id") Long id);

    /**
     * 根据用户id和sop单号集合查找处理时限
     *
     * @param userId
     * @param sopNoSet
     * @return
     */
    List<WorkTaskResult> getJobRemindProcessHour(@Param("userId") Long userId, @Param("sopNoSet") Set<String> sopNoSet);
}
