package com.hzs.system.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.domain.system.sys.SysApprovalBusinessDetail;

import java.util.List;
import java.util.Map;

/**
 * 审批业务明细表 服务类
 *
 * @author hzs
 * @since 2022-09-21
 */
public interface ISysApprovalBusinessDetailService extends IService<SysApprovalBusinessDetail> {

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

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

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

}
