yeg
2026-08-29 76f9639e3c0e14cc6a4e05d3a3212799ea1c48fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.ruoyi.system.mapper;
 
import java.time.Instant;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.TDeviceAdapter;
 
public interface TDeviceAdapterMapper
{
    List<TDeviceAdapter> selectDeviceAdapterList(TDeviceAdapter query);
    List<TDeviceAdapter> selectEnabledDeviceAdapters();
    TDeviceAdapter selectDeviceAdapterById(Long adapterId);
    TDeviceAdapter selectDeviceAdapterByCode(String adapterCode);
    int upsertManagedDeviceAdapter(TDeviceAdapter adapter);
    int insertDeviceAdapter(TDeviceAdapter adapter);
    int updateDeviceAdapter(TDeviceAdapter adapter);
    int updateDeviceAdapterStatus(@Param("adapterId") Long adapterId, @Param("status") String status,
            @Param("updateBy") String updateBy);
    int updateDiscoverySuccess(@Param("adapterId") Long adapterId, @Param("observedAt") Instant observedAt);
    int updateDiscoveryFailure(@Param("adapterId") Long adapterId, @Param("errorCode") String errorCode,
            @Param("errorMessage") String errorMessage);
}