package com.dy.pipIrrWebFile.get; import com.dy.pipIrrGlobal.daoFi.WebFileMapper; import com.dy.pipIrrGlobal.pojoFi.WebFile; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @author ZhuBaoMin * @date 2024-10-22 15:27 * @LastEditTime 2024-10-22 15:27 * @Description */ @Slf4j @Service public class GetFileSv { @Autowired private WebFileMapper webFileMapper; /** * 根据ID获取文件对象 * @param fileId * @return */ public WebFile getWebFileById(Long fileId) { return webFileMapper.selectByPrimaryKey(fileId); } }