package com.hzs.system.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzs.common.domain.system.sys.SysApprovalBusinessDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 审批业务明细表 Mapper 接口
 *
 * @author hzs
 * @since 2022-09-21
 */
public interface SysApprovalBusinessDetailMapper extends BaseMapper<SysApprovalBusinessDetail> {

    /**
     * 批量插入数据
     *
     * @param list
     * @return
     */
    int insertBatch(List<SysApprovalBusinessDetail> list);

    /**
     * 根据审批业务ID查询审批业务明细
     *
     * @param pkIdList
     * @return
     */
    List<SysApprovalBusinessDetail> approvalDetailList(@Param("pkIdList") List<Long> pkIdList);

}
