package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.UDevice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UDeviceMapper {
    UDevice selectById(@Param("deviceId") Long deviceId);

    UDevice selectBySn(@Param("deviceSn") String deviceSn);

    List<UDevice> selectListByOwner(@Param("ownerUserId") Long ownerUserId,
                                    @Param("deviceName") String deviceName,
                                    @Param("deviceType") String deviceType,
                                    @Param("status") String status);

    int insert(UDevice device);

    int update(UDevice device);

    int softDeleteByIds(@Param("ids") Long[] ids,
                        @Param("updateBy") String updateBy,
                        @Param("ownerUserId") Long ownerUserId);
}
