类 AttachmentService
java.lang.Object
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
com.mbap.mybatis.strongbox.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO<M,T>
com.mbap.mybatis.ty.service.BaseService<AttachmentMapper,Attachment>
com.mbap.upload.service.AttachmentService
- 所有已实现的接口:
com.baomidou.mybatisplus.extension.service.IService<Attachment>
@Service("attachmentService")
public class AttachmentService
extends com.mbap.mybatis.ty.service.BaseService<AttachmentMapper,Attachment>
附件操作服务
- 作者:
- 郑斌
-
字段概要
从类继承的字段 com.mbap.mybatis.strongbox.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
MYSQL从类继承的字段 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
baseMapper, entityClass, log, mapperClass从接口继承的字段 com.baomidou.mybatisplus.extension.service.IService
DEFAULT_BATCH_SIZE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleandelAttachment(String attachId) 功能描述: 删除附件saveAttachment(String attachName, String duration, InputStream input) 功能描述: 保存附件流功能描述: 保存附件地址saveAttachment2Minio(String origName, String reName, String bucketName, String objectName, String size, String duration) 功能描述: 保存附件到MiniosaveAttachment2Oss(String origName, String reName, String bucketName, String objectName, String size, String duration) 功能描述: 保存附件到OssvoidsetServletContext(javax.servlet.ServletContext sc) 从类继承的方法 com.mbap.mybatis.strongbox.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
execNoResultSql, findBySql, findBySql2Entity, findBySql2Map, findBySql2Map, getCountBySql, getDbType, getUniqueResultBySql, getUniqueResultBySql, pageBySql2Entity, pageBySql2Map, pageBySql2Map, removeByIds从类继承的方法 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
count, count, getById, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeById, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById
-
构造器详细资料
-
AttachmentService
public AttachmentService()
-
-
方法详细资料
-
saveAttachment
public Attachment saveAttachment(String attachName, String physicalName, String floder, String size, String duration) 功能描述: 保存附件地址- 参数:
attachName- 文件旧有名称physicalName- 物理名称floder- 上传文件夹名称size- 文件大小duration- 音视频时长- 返回:
- 保存的附件
-
saveAttachment
功能描述: 保存附件流- 参数:
attachName- 文件名称duration- 时长input- 文件流- 返回:
- 所保存的附件
-
saveAttachment2Minio
public Attachment saveAttachment2Minio(String origName, String reName, String bucketName, String objectName, String size, String duration) 功能描述: 保存附件到Minio- 参数:
origName- 文件原有名称reName- 基于文件名策略生成的新名称bucketName- bucketNameobjectName- 对象名称size- 文件大小duration- 音视频时长- 返回:
- 保存的附件
-
saveAttachment2Oss
public Attachment saveAttachment2Oss(String origName, String reName, String bucketName, String objectName, String size, String duration) 功能描述: 保存附件到Oss- 参数:
origName- 文件原有名称reName- 基于文件名策略生成的新名称bucketName- bucketNameobjectName- 对象名称size- 文件大小duration- 音视频时长- 返回:
- 保存的附件
-
delAttachment
功能描述: 删除附件- 参数:
attachId- 附件ID- 返回:
- 是否已删除
-
setServletContext
public void setServletContext(javax.servlet.ServletContext sc)
-