package com.huimv.receive.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huimv.receive.entity.BaseProcess;
import com.huimv.receive.entity.BillPersonnelAdmission;
import com.huimv.receive.entity.vo.BaseProcessByLocationVo;
import com.huimv.receive.entity.vo.ProcessVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 流程表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-07-21
 */
public interface BaseProcessMapper extends BaseMapper<BaseProcess> {

    List<BaseProcessByLocationVo> pageByLocationId(@Param("locationId")String locationId, @Param("processId")String processId);

    IPage<ProcessVo> listAll(@Param(Constants.WRAPPER) QueryWrapper<BaseProcess> queryWrapper,IPage<ProcessVo> page);
}
