package jnpf.dmsMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import jnpf.dmsEntity.permission.entity.DmsFolderEntity; import jnpf.dmsEntity.permission.model.DmsFolderAncestorRow; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; import java.util.UUID; @Mapper public interface DmsFolderMapper extends BaseMapper { @Select("SELECT id, tenant_id, parent_id, name, created_by, created_at " + "FROM public.dms_folders WHERE tenant_id = #{tenantId} AND id = #{id}") DmsFolderEntity selectByTenantAndId(@Param("tenantId") String tenantId, @Param("id") UUID id); @Select({""}) List selectByTenantAndIds(@Param("tenantId") String tenantId, @Param("ids") List ids); @Select({""}) List selectAncestorRows(@Param("tenantId") String tenantId, @Param("folderIds") List folderIds); }