package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ManageDeviceDictionaryMapper;
import com.ruoyi.system.domain.ManageDeviceDictionary;
import com.ruoyi.system.service.IManageDeviceDictionaryService;

/**
 * Device product enumService业务层处理
 *
 * @author ruoyi
 * @date 2024-09-03
 */
@Service
public class ManageDeviceDictionaryServiceImpl implements IManageDeviceDictionaryService
{
    @Autowired
    private ManageDeviceDictionaryMapper manageDeviceDictionaryMapper;

    /**
     * 查询Device product enum
     *
     * @param id Device product enum主键
     * @return Device product enum
     */
    @Override
    public ManageDeviceDictionary selectManageDeviceDictionaryById(Integer id)
    {
        return manageDeviceDictionaryMapper.selectManageDeviceDictionaryById(id);
    }

    /**
     * 查询Device product enum列表
     *
     * @param manageDeviceDictionary Device product enum
     * @return Device product enum
     */
    @Override
    public List<ManageDeviceDictionary> selectManageDeviceDictionaryList(ManageDeviceDictionary manageDeviceDictionary)
    {
        return manageDeviceDictionaryMapper.selectManageDeviceDictionaryList(manageDeviceDictionary);
    }

    /**
     * 新增Device product enum
     *
     * @param manageDeviceDictionary Device product enum
     * @return 结果
     */
    @Override
    public int insertManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary)
    {
        return manageDeviceDictionaryMapper.insertManageDeviceDictionary(manageDeviceDictionary);
    }

    /**
     * 修改Device product enum
     *
     * @param manageDeviceDictionary Device product enum
     * @return 结果
     */
    @Override
    public int updateManageDeviceDictionary(ManageDeviceDictionary manageDeviceDictionary)
    {
        return manageDeviceDictionaryMapper.updateManageDeviceDictionary(manageDeviceDictionary);
    }

    /**
     * 批量删除Device product enum
     *
     * @param ids 需要删除的Device product enum主键
     * @return 结果
     */
    @Override
    public int deleteManageDeviceDictionaryByIds(Integer[] ids)
    {
        return manageDeviceDictionaryMapper.deleteManageDeviceDictionaryByIds(ids);
    }

    @Override
    public ManageDeviceDictionary selectManageDeviceDictionaryByCondition(String s, String s1, String s2) {
        return manageDeviceDictionaryMapper.selectManageDeviceDictionaryByCondition(s,s1,s2);
    }

    /**
     * 删除Device product enum信息
     *
     * @param id Device product enum主键
     * @return 结果
     */
    @Override
    public int deleteManageDeviceDictionaryById(Integer id)
    {
        return manageDeviceDictionaryMapper.deleteManageDeviceDictionaryById(id);
    }
}
