package cn.stylefeng.workflow.instance.modular.task.mapper;

import cn.stylefeng.roses.kernel.db.mp.injector.CustomBaseMapper;
import cn.stylefeng.workflow.api.entity.task.RuTask;
import cn.stylefeng.workflow.instance.api.pojo.TaskQueryParam;
import cn.stylefeng.workflow.instance.api.pojo.task.CommonTaskItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RuTaskMapper extends CustomBaseMapper<RuTask> {

    List<CommonTaskItem> findUserTaskPage(@Param("page") Page page, @Param("param") TaskQueryParam taskQueryParam);

    List<CommonTaskItem> findUserTaskTotalList(@Param("param") TaskQueryParam taskQueryParam);

    List<CommonTaskItem> findMySubmitTaskPage(@Param("page") Page page, @Param("param") TaskQueryParam taskQueryParam);

    List<CommonTaskItem> findMySubmitTaskTotalList(@Param("param") TaskQueryParam taskQueryParam);

}