Files
ai-security-xdr/haobang-security-dm/syslog-consumer-rule/target/classes/com/common/mapper/DeviceCollectHeartbeatMapper.class
T

5 lines
2.9 KiB
Plaintext
Raw Normal View History

Êþº¾41/0selectByCollectId>(Ljava/lang/String;)Lcom/common/entity/DeviceCollectHeartbeat;MethodParameters collectIdRuntimeVisibleAnnotations&Lorg/apache/ibatis/annotations/Select;valueFSELECT * FROM device_collect_heartbeat WHERE collect_id = #{collectId}"RuntimeVisibleParameterAnnotations%Lorg/apache/ibatis/annotations/Param; selectAll()Ljava/util/List; Signature>()Ljava/util/List<Lcom/common/entity/DeviceCollectHeartbeat;>;@SELECT * FROM device_collect_heartbeat ORDER BY update_time DESCselectAllOnlineXSELECT * FROM device_collect_heartbeat WHERE status = 'online' ORDER BY update_time DESCselectAllOfflineYSELECT * FROM device_collect_heartbeat WHERE status = 'offline' ORDER BY update_time DESCupsert-(Lcom/common/entity/DeviceCollectHeartbeat;)I heartbeat&Lorg/apache/ibatis/annotations/Insert;pINSERT INTO device_collect_heartbeat (collect_id, collect_name, device_ip, app_version, last_heartbeat, heartbeat_count, status, fail_count, update_time ) VALUES (#{collectId}, #{collectName}, #{deviceIp}, #{appVersion}, #{lastHeartbeat}, #{heartbeatCount}, #{status}, #{failCount}, #{updateTime} ) ON CONFLICT (collect_id) DO UPDATE SET collect_name = EXCLUDED.collect_name, device_ip = EXCLUDED.device_ip, app_version = EXCLUDED.app_version, last_heartbeat = EXCLUDED.last_heartbeat, heartbeat_count = EXCLUDED.heartbeat_count, status = EXCLUDED.status, fail_count = EXCLUDED.fail_count, update_time = EXCLUDED.update_time updateStatusS(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/time/LocalDateTime;)Istatus failCount
updateTime&Lorg/apache/ibatis/annotations/Update;ŽUPDATE device_collect_heartbeat SET status = #{status}, fail_count = #{failCount}, update_time = #{updateTime} WHERE collect_id = #{collectId}selectOfflineCandidates+(Ljava/time/LocalDateTime;)Ljava/util/List;
thresholdTimeW(Ljava/time/LocalDateTime;)Ljava/util/List<Lcom/common/entity/DeviceCollectHeartbeat;>;€SELECT * FROM device_collect_heartbeat WHERE status = 'online' AND last_heartbeat < #{thresholdTime} ORDER BY last_heartbeat ASCdeleteBeforeTime(Ljava/time/LocalDateTime;)I
beforeTime&Lorg/apache/ibatis/annotations/Delete;FDELETE FROM device_collect_heartbeat WHERE update_time < #{beforeTime}
SourceFile!DeviceCollectHeartbeatMapper.java&Lorg/apache/ibatis/annotations/Mapper;.com/common/mapper/DeviceCollectHeartbeatMapperjava/lang/Object [s