/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.workflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.workflow.entity.WorkFlowDelayRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author hxl
 */
public interface WorkFlowDelayRecordMapper extends BaseMapper<WorkFlowDelayRecord> {

    /**
     * 分页通用查询
     * @param page 分页对象
     * @param paraMap 查询条件
     * @return 列表
     */
    IPage<WorkFlowDelayRecord> getPageResult(IPage<Map<String, Object>> page, @Param("query") Map<String, Object> paraMap);

    /**
     * 我的延期申请记录
     * @param page 分页对象
     * @param paraMap 查询条件
     * @return 列表
     */
    IPage<WorkFlowDelayRecord> myDelayRecords(IPage<Map<String, Object>> page, @Param("query") Map<String, Object> paraMap);
}
