yeg
2026-09-01 0fcd0642efdff8d4e0584fa991aaea2178bc932b
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TDeviceAdapterMapper.java
@@ -3,8 +3,6 @@
import java.time.Instant;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.TDetectionCabinet;
import com.ruoyi.system.domain.TDetectionChannel;
import com.ruoyi.system.domain.TDeviceAdapter;
public interface TDeviceAdapterMapper
@@ -13,6 +11,7 @@
    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,
@@ -20,16 +19,4 @@
    int updateDiscoverySuccess(@Param("adapterId") Long adapterId, @Param("observedAt") Instant observedAt);
    int updateDiscoveryFailure(@Param("adapterId") Long adapterId, @Param("errorCode") String errorCode,
            @Param("errorMessage") String errorMessage);
    Long selectCabinetIdByIdentity(@Param("adapterId") Long adapterId,
            @Param("devtype") Integer devtype, @Param("devid") Integer devid);
    int insertDetectedCabinet(TDetectionCabinet cabinet);
    int updateDetectedCabinet(TDetectionCabinet cabinet);
    int upsertDetectedChannel(TDetectionChannel channel);
    List<TDetectionChannel> selectDetectionChannelsByAdapterId(Long adapterId);
    /** 发现只追加或更新,不提供“本轮缺失即删除”的持久化操作。 */
    default int deleteMissingChannels(Long adapterId, List<String> identities)
    {
        throw new UnsupportedOperationException("Discovery must not delete missing channels");
    }
}