package com.ruoyi.cs.mapper;

import java.util.List;
import com.ruoyi.cs.domain.CsBusinessMapping;
import com.ruoyi.cs.domain.CsUserInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 业务映射Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
public interface CsBusinessMappingMapper 
{
    /**
     * 查询业务映射
     * 
     * @param mappingId 业务映射主键
     * @return 业务映射
     */
    public CsBusinessMapping selectCsBusinessMappingByMappingId(String mappingId);

    /**
     * 查询业务映射列表
     * 
     * @param csBusinessMapping 业务映射
     * @return 业务映射集合
     */
    public List<CsBusinessMapping> selectCsBusinessMappingList(CsBusinessMapping csBusinessMapping);

    /**
     * 新增业务映射
     * 
     * @param csBusinessMapping 业务映射
     * @return 结果
     */
    public int insertCsBusinessMapping(CsBusinessMapping csBusinessMapping);

    /**
     * 修改业务映射
     * 
     * @param csBusinessMapping 业务映射
     * @return 结果
     */
    public int updateCsBusinessMapping(CsBusinessMapping csBusinessMapping);

    /**
     * 删除业务映射
     * 
     * @param mappingId 业务映射主键
     * @return 结果
     */
    public int deleteCsBusinessMappingByMappingId(String mappingId);

    /**
     * 批量删除业务映射
     * 
     * @param mappingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCsBusinessMappingByMappingIds(String[] mappingIds);


    /**
     * 批量新增业务映射信息
     *
     * @param mappingList 使用人员信息
     * @return 结果
     */
    public int batchInsertBusinessMapping(@Param("mappingList") List<CsBusinessMapping> mappingList);

    /**
     * 查询业务映射列表
     * @param resId 业务映射相关资源ID
     * @param resType 相关资源类型：0-资源，1-工单，2-
     * @return 业务映射集合
     */
    public List<CsBusinessMapping> selectApplyBusinessMappingList(@Param("resId") String resId, @Param("resType") String resType);

    /**
     * 批量删除申请的业务映射信息
     *
     * @param resId 申请id
     * @param resType 申请id
     * @return 结果
     */
    public int batchDeleteBusinessMapping(@Param("resId") String resId, @Param("resType") String resType);
}
