Package net.risesoft.api
Class AttachmentApiImpl
- java.lang.Object
-
- net.risesoft.api.AttachmentApiImpl
-
- All Implemented Interfaces:
AttachmentApi
@RestController @RequestMapping(value="/services/rest/attachment", produces="application/json") public class AttachmentApiImpl extends Object implements AttachmentApi附件接口- Author:
- qinman, zhangchongjie
- Date:
- 2022/12/20
-
-
Constructor Summary
Constructors Constructor Description AttachmentApiImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<List<AttachmentConfModel>>findByAttachmentType(String tenantId, String attachmentType)获取附件配置信息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)
-
-
-
Method Detail
-
delBatchByProcessSerialNumbers
public net.risesoft.pojo.Y9Result<Object> delBatchByProcessSerialNumbers(@RequestParam String tenantId, @RequestBody List<String> processSerialNumbers)
根据流程编号删除附件- Specified by:
delBatchByProcessSerialNumbersin interfaceAttachmentApi- Parameters:
tenantId- 租户idprocessSerialNumbers- 流程编号- Returns:
Y9Result<Object>通用请求返回对象- Since:
- 9.6.6
-
delFile
public net.risesoft.pojo.Y9Result<Object> delFile(@RequestParam String tenantId, @RequestParam String ids)
删除附件(物理删除,包含具体文件)- Specified by:
delFilein interfaceAttachmentApi- Parameters:
tenantId- 租户idids- 附件ids- Returns:
Y9Result<Object>通用请求返回对象- Since:
- 9.6.6
-
fileCounts
public net.risesoft.pojo.Y9Result<Integer> fileCounts(@RequestParam String tenantId, @RequestParam String processSerialNumber)
根据流程编号获取附件数量- Specified by:
fileCountsin interfaceAttachmentApi- Parameters:
tenantId- 租户idprocessSerialNumber- 流程编号- Returns:
Y9Result<Integer>通用请求返回对象 - data是附件数- Since:
- 9.6.6
-
findById
public net.risesoft.pojo.Y9Result<AttachmentModel> findById(@RequestParam String tenantId, @RequestParam String id)
根据附件id获取附件信息- Specified by:
findByIdin interfaceAttachmentApi- Parameters:
tenantId- 租户idid- 附件id- Returns:
Y9Result<AttachmentModel>通用请求返回对象 - data是附件对象- Since:
- 9.6.6
-
getAttachmentCount
public net.risesoft.pojo.Y9Result<Integer> getAttachmentCount(@RequestParam String tenantId, @RequestParam String processSerialNumber, String fileSource, String fileType)
根据流程编号、附件来源、文件类型获取附件数量- Specified by:
getAttachmentCountin interfaceAttachmentApi- Parameters:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源fileType- 文件类型- Returns:
Y9Result<Integer>通用请求返回对象 - data是附件数- Since:
- 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)
获取附件分页列表- Specified by:
getAttachmentListin interfaceAttachmentApi- Parameters:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源page- 页码rows- 行数- Returns:
Y9Page<AttachmentModel>通用分页请求返回对象 - rows是附件对象- Since:
- 9.6.6
-
getAttachmentModelList
public net.risesoft.pojo.Y9Result<List<AttachmentModel>> getAttachmentModelList(@RequestParam String tenantId, @RequestParam String processSerialNumber, String fileSource)
获取附件列表- Specified by:
getAttachmentModelListin interfaceAttachmentApi- Parameters:
tenantId- 租户idprocessSerialNumber- 流程编号fileSource- 附件来源- Returns:
Y9Result<List<AttachmentModel>>通用请求返回对象 - data是附件列表- Since:
- 9.6.6
-
getFile
public net.risesoft.pojo.Y9Result<AttachmentModel> getFile(@RequestParam String tenantId, @RequestParam String fileId)
获取附件文件信息- Specified by:
getFilein interfaceAttachmentApi- Parameters:
tenantId- 租户idfileId- 附件id- Returns:
Y9Result<AttachmentModel>通用请求返回对象 - data是附件对象- Since:
- 9.6.6
-
saveAttachment
public net.risesoft.pojo.Y9Result<Object> saveAttachment(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestParam String attachjson, @RequestParam String processSerialNumber)
保存附件信息- Specified by:
saveAttachmentin interfaceAttachmentApi- Parameters:
tenantId- 租户idorgUnitId- 人员、岗位idattachjson- 附件信息processSerialNumber- 流程编号- Returns:
Y9Result<Object>通用请求返回对象- Since:
- 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)
保存或更新附件上传信息- Specified by:
saveOrUpdateUploadInfoin interfaceAttachmentApi- Parameters:
tenantId- 租户idorgUnitId- 人员、岗位idfileName- 文件名称fileType- 文件类型fileSizeString- 文件大小fileSource- 附件来源processInstanceId- 流程实例idprocessSerialNumber- 流程编号taskId- 任务idy9FileStoreId- 附件上传id- Returns:
Y9Result<String>通用请求返回对象- Since:
- 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)
更新附件信息- Specified by:
updateFilein interfaceAttachmentApi- Parameters:
tenantId- 租户idorgUnitId- 人员、岗位idfileId- 文件idfileSize- 文件大小taskId- 任务idy9FileStoreId- 附件上传id- Returns:
Y9Result<String>通用请求返回对象- Since:
- 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)
上传附件- Specified by:
uploadin interfaceAttachmentApi- Parameters:
tenantId- 租户iduserId- 人员idorgUnitId- 人员、岗位idfileName- 文件名fileSize- 文件大小processInstanceId- 流程实例idtaskId- 任务iddescribes- 描述processSerialNumber- 流程编号fileSource- 附件来源y9FileStoreId- 附件上传id- Returns:
Y9Result<String>通用请求返回对象- Since:
- 9.6.6
-
uploadModel
public net.risesoft.pojo.Y9Result<Object> uploadModel(@RequestParam String tenantId, @RequestParam String orgUnitId, @RequestBody AttachmentModel attachmentModel)
更新附件信息(model)- Specified by:
uploadModelin interfaceAttachmentApi- Parameters:
tenantId- 租户idorgUnitId- 人员、岗位idattachmentModel- 附件实体信息- Returns:
Y9Result<Object>通用请求返回对象- Since:
- 9.6.6
-
findByAttachmentType
public net.risesoft.pojo.Y9Result<List<AttachmentConfModel>> findByAttachmentType(@RequestParam String tenantId, @RequestParam String attachmentType)
获取附件配置信息- Specified by:
findByAttachmentTypein interfaceAttachmentApi- Parameters:
tenantId-attachmentType-- Returns:
-
-