package com.ktg.iscs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ktg.iscs.domain.IsMaterialsRestitutionRules;

import java.util.List;

/**
 * 物资借出规则Service接口
 *
 * @author cgj
 * @date 2024-11-08
 */
public interface IIsMaterialsRestitutionRulesService extends IService<IsMaterialsRestitutionRules>
{
    /**
     * 查询物资借出规则
     *
     * @param ruleId 物资借出规则主键
     * @return 物资借出规则
     */
    IsMaterialsRestitutionRules selectIsMaterialsRestitutionRulesByRuleId(Long ruleId);

    /**
     * 查询物资借出规则列表
     *
     * @param isMaterialsRestitutionRules 物资借出规则
     * @return 物资借出规则集合
     */
    List<IsMaterialsRestitutionRules> selectIsMaterialsRestitutionRulesList(IsMaterialsRestitutionRules isMaterialsRestitutionRules);

    /**
     * 新增物资借出规则
     *
     * @param isMaterialsRestitutionRules 物资借出规则
     * @return 结果
     */
    int insertIsMaterialsRestitutionRules(IsMaterialsRestitutionRules isMaterialsRestitutionRules);

    /**
     * 修改物资借出规则
     *
     * @param isMaterialsRestitutionRules 物资借出规则
     * @return 结果
     */
    int updateIsMaterialsRestitutionRules(IsMaterialsRestitutionRules isMaterialsRestitutionRules);

    /**
     * 批量删除物资借出规则
     *
     * @param ruleIds 需要删除的物资借出规则主键集合
     * @return 结果
     */
    int deleteIsMaterialsRestitutionRulesByRuleIds(String ruleIds);

    /**
     * 删除物资借出规则信息
     *
     * @param ruleId 物资借出规则主键
     * @return 结果
     */
    int deleteIsMaterialsRestitutionRulesByRuleId(Long ruleId);
}
