package com.ruoyi.system.service.impl;

import com.ruoyi.common.biz.BaseServiceImpl;
import com.ruoyi.system.mapper.SysDeviceStatusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.domain.SysDeviceStatus;
import com.ruoyi.system.service.ISysDeviceStatusService;
import org.springframework.transaction.annotation.Transactional;
import reactor.core.publisher.Mono;

/**
 * 设备状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class SysDeviceStatusServiceImpl
	extends BaseServiceImpl<SysDeviceStatus, Long, SysDeviceStatusMapper>
	implements ISysDeviceStatusService
{
    /**
     * 新增设备状态
     *
     * @param sysDeviceStatus 设备状态
     * @return 结果
     */
    @Transactional
    @Override
    public Mono<Long> insert(SysDeviceStatus sysDeviceStatus)
    {
        return mapper.insert(sysDeviceStatus);
    }

    /**
     * 修改设备状态
     *
     * @param sysDeviceStatus 设备状态
     * @return 结果
     */
    @Transactional
    @Override
    public Mono<Long> update(SysDeviceStatus sysDeviceStatus)
    {
        return mapper.update(sysDeviceStatus);
    }
}
