刘光辉
4 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package jnpf.dmsMapper;
 
import jnpf.dmsEntity.storage.expiry.DmsFileExpiryResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
import java.util.UUID;
 
@Mapper
public interface DmsFileExpiryProjectionMapper {
    boolean hasPendingProjection(@Param("tenantId") String tenantId, @Param("fileVersionId") UUID fileVersionId);
    List<DmsFileExpiryResource> lockResources(@Param("tenantId") String tenantId, @Param("fileVersionId") UUID fileVersionId);
    int disable(@Param("tenantId") String tenantId, @Param("resource") DmsFileExpiryResource resource,
                @Param("effectiveTo") Date effectiveTo, @Param("actor") String actor);
    int expireBusinessVersion(@Param("tenantId") String tenantId,
                              @Param("resource") DmsFileExpiryResource resource, @Param("actor") String actor);
    int closeRelations(@Param("tenantId") String tenantId, @Param("fileId") String fileId,
                       @Param("effectiveTo") Date effectiveTo, @Param("actor") String actor);
    int extendValidity(@Param("tenantId") String tenantId, @Param("resource") DmsFileExpiryResource resource,
                       @Param("effectiveTo") Date effectiveTo, @Param("actor") String actor);
}