程序包 net.risesoft.api
类 AttachmentApiImpl
- java.lang.Object
-
- net.risesoft.api.AttachmentApiImpl
-
- 所有已实现的接口:
AttachmentApi
@RestController @RequestMapping(value="/services/rest/attachment", produces="application/json") public class AttachmentApiImpl extends Object implements AttachmentApi附件接口- 作者:
- qinman, zhangchongjie
- Date:
- 2022/12/20
-
-
构造器概要
构造器 构造器 说明 AttachmentApiImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 net.risesoft.pojo.Y9Result<Object>delBatchByProcessSerialNumbers(String tenantId, List<String> processSerialNumbers)根据流程编号删除附件net.risesoft.pojo.Y9Result<Object>delFile(String tenantId, String ids)删除附件(物理删除,包含具体文件)net.risesoft.pojo.Y9Result<Integer>fileCounts(String tenantId, String processSerialNumber)根据流程编号获取附件数量net.risesoft.pojo.Y9Result<AttachmentModel>findById(String tenantId, String id)根据附件id获取附件信息net.risesoft.pojo.Y9Result<Integer>getAttachmentCount(String tenantId, String processSerialNumber, String fileSource, String fileType)根据流程编号、附件来源、文件类型获取附件数量net.risesoft.pojo.Y9Page<AttachmentModel>getAttachmentList(String tenantId, String processSerialNumber, String fileSource, int page, int rows)获取附件分页列表net.risesoft.pojo.Y9Result<List<AttachmentModel>>getAttachmentModelList(String tenantId, String processSerialNumber, String fileSource)获取附件列表net.risesoft.pojo.Y9Result<AttachmentModel>getFile(String tenantId, String fileId)获取附件文件信息net.risesoft.pojo.Y9Result<Object>saveAttachment(String tenantId, String orgUnitId, String attachjson, String processSerialNumber)保存附件信息net.risesoft.pojo.Y9Result<String>saveOrUpdateUploadInfo(String tenantId, String orgUnitId, String fileName, String fileType, String fileSizeString, String fileSource, String processInstanceId, String processSerialNumber, String taskId, String y9FileStoreId)保存或更新附件上传信息net.risesoft.pojo.Y9Result<String>updateFile(String tenantId, String orgUnitId, String fileId, String fileSize, String taskId, String y9FileStoreId)更新附件信息net.risesoft.pojo.Y9Result<String>upload(String tenantId, String userId, String orgUnitId, String fileName, String fileSize, String processInstanceId, String taskId, String describes, String processSerialNumber, String fileSource, String y9FileStoreId)上传附件net.risesoft.pojo.Y9Result<Object>uploadModel(String tenantId, String orgUnitId, AttachmentModel attachmentModel)更新附件信息(model)
-
-
-
方法详细资料
-
delBatchByProcessSerialNumbers
public net.risesoft.pojo.Y9Result<Object> delBatchByProcessSerialNumbers(@RequestParam String tenantId, @RequestBody List<String> processSerialNumbers)
根据流程编号删除附件- 指定者:
delBatchByProcessSerialNumbers在接口中AttachmentApi- 参数:
tenantId- 租户idprocessSerialNumbers- 流程编号- 返回:
Y9Result<Object>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
delFile
public net.risesoft.pojo.Y9Result<Object> delFile(@RequestParam String tenantId, @RequestParam String ids)
删除附件(物理删除,包含具体文件)- 指定者:
delFile在接口中AttachmentApi- 参数:
tenantId- 租户idids- 附件ids- 返回:
Y9Result<Object>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
fileCounts
public net.risesoft.pojo.Y9Result<Integer> fileCounts(@RequestParam String tenantId, @RequestParam String processSerialNumber)
根据流程编号获取附件数量- 指定者:
fileCounts在接口中AttachmentApi- 参数:
tenantId- 租户idprocessSerialNumber- 流程编号- 返回:
Y9Result<Integer>通用请求返回对象 - data是附件数- 从以下版本开始:
- 9.6.6
-
findById
public net.risesoft.pojo.Y9Result<AttachmentModel> findById(@RequestParam String tenantId, @RequestParam String id)
根据附件id获取附件信息- 指定者:
findById在接口中AttachmentApi- 参数:
tenantId- 租户idid- 附件id- 返回:
Y9Result<AttachmentModel>通用请求返回对象 - data是附件对象- 从以下版本开始:
- 9.6.6
-
getAttachmentCount
public net.risesoft.pojo.Y9Result<Integer> getAttachmentCount(@RequestParam String tenantId, @RequestParam String processSerialNumber, String fileSource, String fileType)
根据流程编号、附件来源、文件类型获取附件数量- 指定者:
getAttachmentCount在接口中AttachmentApi- 参数:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源fileType- 文件类型- 返回:
Y9Result<Integer>通用请求返回对象 - data是附件数- 从以下版本开始:
- 9.6.6
-
getAttachmentList
public net.risesoft.pojo.Y9Page<AttachmentModel> getAttachmentList(@RequestParam String tenantId, @RequestParam String processSerialNumber, String fileSource, @RequestParam int page, @RequestParam int rows)
获取附件分页列表- 指定者:
getAttachmentList在接口中AttachmentApi- 参数:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源page- 页码rows- 行数- 返回:
Y9Page<AttachmentModel>通用分页请求返回对象 - rows是附件对象- 从以下版本开始:
- 9.6.6
-
getAttachmentModelList
public net.risesoft.pojo.Y9Result<List<AttachmentModel>> getAttachmentModelList(@RequestParam String tenantId, @RequestParam String processSerialNumber, String fileSource)
获取附件列表- 指定者:
getAttachmentModelList在接口中AttachmentApi- 参数:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源- 返回:
Y9Result<List<AttachmentModel>>通用请求返回对象 - data是附件列表- 从以下版本开始:
- 9.6.6
-
getFile
public net.risesoft.pojo.Y9Result<AttachmentModel> getFile(@RequestParam String tenantId, @RequestParam String fileId)
获取附件文件信息- 指定者:
getFile在接口中AttachmentApi- 参数:
tenantId- 租户idfileId- 附件id- 返回:
Y9Result<AttachmentModel>通用请求返回对象 - data是附件对象- 从以下版本开始:
- 9.6.6
-
saveAttachment
public net.risesoft.pojo.Y9Result<Object> saveAttachment(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestParam String attachjson, @RequestParam String processSerialNumber)
保存附件信息- 指定者:
saveAttachment在接口中AttachmentApi- 参数:
tenantId- 租户idorgUnitId- 人员、岗位idattachjson- 附件信息processSerialNumber- 流程编号- 返回:
Y9Result<Object>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
saveOrUpdateUploadInfo
public net.risesoft.pojo.Y9Result<String> saveOrUpdateUploadInfo(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestParam String fileName, String fileType, String fileSizeString, String fileSource, String processInstanceId, String processSerialNumber, String taskId, @RequestParam String y9FileStoreId)
保存或更新附件上传信息- 指定者:
saveOrUpdateUploadInfo在接口中AttachmentApi- 参数:
tenantId- 租户idorgUnitId- 人员、岗位idfileName- 文件名称fileType- 文件类型fileSizeString- 文件大小fileSource- 附件来源processInstanceId- 流程实例idprocessSerialNumber- 流程编号taskId- 任务idy9FileStoreId- 附件上传id- 返回:
Y9Result<String>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
updateFile
public net.risesoft.pojo.Y9Result<String> updateFile(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestParam String fileId, String fileSize, String taskId, @RequestParam String y9FileStoreId)
更新附件信息- 指定者:
updateFile在接口中AttachmentApi- 参数:
tenantId- 租户idorgUnitId- 人员、岗位idfileId- 文件idfileSize- 文件大小taskId- 任务idy9FileStoreId- 附件上传id- 返回:
Y9Result<String>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
upload
public net.risesoft.pojo.Y9Result<String> upload(@RequestParam String tenantId, @RequestParam String userId, @RequestParam String orgUnitId, @RequestParam String fileName, String fileSize, String processInstanceId, String taskId, String describes, String processSerialNumber, String fileSource, @RequestParam String y9FileStoreId)
上传附件- 指定者:
upload在接口中AttachmentApi- 参数:
tenantId- 租户iduserId- 人员idorgUnitId- 人员、岗位idfileName- 文件名fileSize- 文件大小processInstanceId- 流程实例idtaskId- 任务iddescribes- 描述processSerialNumber- 流程编号fileSource- 附件来源y9FileStoreId- 附件上传id- 返回:
Y9Result<String>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
uploadModel
public net.risesoft.pojo.Y9Result<Object> uploadModel(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestBody AttachmentModel attachmentModel)
更新附件信息(model)- 指定者:
uploadModel在接口中AttachmentApi- 参数:
tenantId- 租户idorgUnitId- 人员、岗位idattachmentModel- 附件实体信息- 返回:
Y9Result<Object>通用请求返回对象- 从以下版本开始:
- 9.6.6
-
-