刘光辉
5 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package jnpf.dmsMapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.dmsEntity.permission.entity.DmsFileVersionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.UUID;
 
@Mapper
public interface DmsFileVersionMapper extends BaseMapper<DmsFileVersionEntity> {
    DmsFileVersionEntity selectByTenantAndId(@Param("tenantId") String tenantId, @Param("id") UUID id);
 
    DmsFileVersionEntity selectReadableByTenantAndId(@Param("tenantId") String tenantId,
                                                     @Param("id") UUID id);
 
    DmsFileVersionEntity selectCurrentEffective(@Param("tenantId") String tenantId,
                                                @Param("documentId") UUID documentId);
 
    long selectNextVersionNo(@Param("tenantId") String tenantId,
                             @Param("documentId") UUID documentId);
 
    List<DmsFileVersionEntity> selectByTenantAndIds(@Param("tenantId") String tenantId,
                                                     @Param("ids") List<UUID> ids);
}