package jnpf.dmsMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import jnpf.dmsEntity.permission.entity.DmsDocumentEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.UUID; @Mapper public interface DmsDocumentMapper extends BaseMapper { DmsDocumentEntity selectByTenantAndId(@Param("tenantId") String tenantId, @Param("id") UUID id); DmsDocumentEntity selectByTenantAndIdForUpdate(@Param("tenantId") String tenantId, @Param("id") UUID id); List selectByTenantAndIds(@Param("tenantId") String tenantId, @Param("ids") List ids); int bindMainDocument(@Param("tenantId") String tenantId, @Param("id") UUID id, @Param("mainDocumentId") UUID mainDocumentId); int countRecords(@Param("tenantId") String tenantId, @Param("mainDocumentId") UUID mainDocumentId); }