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 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 selectByTenantAndIds(@Param("tenantId") String tenantId, @Param("ids") List ids); }