| | |
| | | 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 |
| | |
| | | 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, |
| | |
| | | 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"); |
| | | } |
| | | } |