package com.ruoyi.inventory.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inventory.mapper.HealthcareInventoryStoreroomMapper;
import com.ruoyi.inventory.domain.HealthcareInventoryStoreroom;
import com.ruoyi.inventory.service.IHealthcareInventoryStoreroomService;

/**
 * 库房管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class HealthcareInventoryStoreroomServiceImpl implements IHealthcareInventoryStoreroomService 
{
    @Autowired
    private HealthcareInventoryStoreroomMapper healthcareInventoryStoreroomMapper;

    /**
     * 查询库房管理
     * 
     * @param id 库房管理主键
     * @return 库房管理
     */
    @Override
    public HealthcareInventoryStoreroom selectHealthcareInventoryStoreroomById(Long id)
    {
        return healthcareInventoryStoreroomMapper.selectHealthcareInventoryStoreroomById(id);
    }

    /**
     * 查询库房管理列表
     * 
     * @param healthcareInventoryStoreroom 库房管理
     * @return 库房管理
     */
    @Override
    public List<HealthcareInventoryStoreroom> selectHealthcareInventoryStoreroomList(HealthcareInventoryStoreroom healthcareInventoryStoreroom)
    {
        return healthcareInventoryStoreroomMapper.selectHealthcareInventoryStoreroomList(healthcareInventoryStoreroom);
    }

    /**
     * 新增库房管理
     * 
     * @param healthcareInventoryStoreroom 库房管理
     * @return 结果
     */
    @Override
    public int insertHealthcareInventoryStoreroom(HealthcareInventoryStoreroom healthcareInventoryStoreroom)
    {
        return healthcareInventoryStoreroomMapper.insertHealthcareInventoryStoreroom(healthcareInventoryStoreroom);
    }

    /**
     * 修改库房管理
     * 
     * @param healthcareInventoryStoreroom 库房管理
     * @return 结果
     */
    @Override
    public int updateHealthcareInventoryStoreroom(HealthcareInventoryStoreroom healthcareInventoryStoreroom)
    {
        return healthcareInventoryStoreroomMapper.updateHealthcareInventoryStoreroom(healthcareInventoryStoreroom);
    }

    /**
     * 批量删除库房管理
     * 
     * @param ids 需要删除的库房管理主键
     * @return 结果
     */
    @Override
    public int deleteHealthcareInventoryStoreroomByIds(Long[] ids)
    {
        return healthcareInventoryStoreroomMapper.deleteHealthcareInventoryStoreroomByIds(ids);
    }

    /**
     * 删除库房管理信息
     * 
     * @param id 库房管理主键
     * @return 结果
     */
    @Override
    public int deleteHealthcareInventoryStoreroomById(Long id)
    {
        return healthcareInventoryStoreroomMapper.deleteHealthcareInventoryStoreroomById(id);
    }
}
