@Service public class FileinfoService extends com.baomidou.mybatisplus.service.impl.ServiceImpl<FileinfoMapper,Fileinfo>
文件信息表 服务实现类
| 构造器和说明 |
|---|
FileinfoService() |
| 限定符和类型 | 方法和说明 |
|---|---|
Fileinfo |
getFileInfo(Long fileId)
获取文件详细信息
|
List<Fileinfo> |
getFileInfoList(com.baomidou.mybatisplus.plugins.Page page,
Fileinfo fileinfo)
获取文件信息列表
|
String |
getFileUrlById(Long fileId)
获取文件的url通过文件id
|
String |
uploadFileAndSaveFileInfo(InputStream inputStream,
String fileName,
Long size)
存储文件
|
currentModelClass, delete, deleteBatchIds, deleteById, deleteByMap, insert, insertAllColumn, insertBatch, insertBatch, insertOrUpdate, insertOrUpdateAllColumn, insertOrUpdateAllColumnBatch, insertOrUpdateAllColumnBatch, insertOrUpdateBatch, insertOrUpdateBatch, retBool, selectBatchIds, selectById, selectByMap, selectCount, selectList, selectMap, selectMaps, selectMapsPage, selectObj, selectObjs, selectOne, selectPage, selectPage, sqlSessionBatch, sqlStatement, update, updateAllColumnBatchById, updateAllColumnBatchById, updateAllColumnById, updateBatchById, updateBatchById, updateById, updateForSet@Transactional(rollbackFor=java.lang.Exception.class) public String uploadFileAndSaveFileInfo(InputStream inputStream, String fileName, Long size)
Copyright © 2018. All rights reserved.