Update FileRunEventRepository.java

This commit is contained in:
Ludy87
2026-09-01 11:48:00 +02:00
parent 1e5eb466b3
commit aa37513395
@@ -106,11 +106,10 @@ public interface FileRunEventRepository extends JpaRepository<FileRunEventEntity
@Query(
"update FileRunEventEntity e set e.status ="
+ " stirling.software.proprietary.failure.FileRunEventStatus.FILE_REMOVED,"
+ " e.statusActor = :actor, e.statusAt = :now where e.origin ="
+ " stirling.software.proprietary.failure.FailureOrigin.TOOL and ((:teamId is null"
+ " and e.teamId is null) or e.teamId = :teamId) and ((:actor is null and e.actor"
+ " is null) or e.actor = :actor) and e.fileId in :fileIds and e.status in"
+ " :allowedFrom")
+ " e.statusActor = :actor, e.statusAt = :now where e.sourceId is null and"
+ " ((:teamId is null and e.teamId is null) or e.teamId = :teamId) and ((:actor is"
+ " null and e.actor is null) or e.actor = :actor) and e.fileId in :fileIds and"
+ " e.status in :allowedFrom")
int markFilesRemoved(
@Param("teamId") Long teamId,
@Param("actor") String actor,