Class EleAttachmentApiImpl

  • All Implemented Interfaces:
    EleAttachmentApi

    @RestController
    @RequestMapping(value="/services/rest/eleAttachment",
                    produces="application/json")
    public class EleAttachmentApiImpl
    extends Object
    implements EleAttachmentApi
    附件接口
    Author:
    qinman, zhangchongjie
    Date:
    2022/12/20
    • Constructor Detail

      • EleAttachmentApiImpl

        public EleAttachmentApiImpl()
    • Method Detail

      • delBatchByProcessSerialNumbers

        public net.risesoft.pojo.Y9Result<Object> delBatchByProcessSerialNumbers​(@RequestParam
                                                                                 String tenantId,
                                                                                 @RequestBody
                                                                                 List<String> processSerialNumbers)
        根据流程编号删除附件
        Specified by:
        delBatchByProcessSerialNumbers in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        processSerialNumbers - 流程编号
        Returns:
        Y9Result<Object> 通用请求返回对象
        Since:
        9.6.6
      • delFile

        public net.risesoft.pojo.Y9Result<Object> delFile​(@RequestParam
                                                          String tenantId,
                                                          @RequestParam
                                                          String ids)
        删除附件(物理删除,包含具体文件)
        Specified by:
        delFile in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        ids - 附件ids
        Returns:
        Y9Result<Object> 通用请求返回对象
        Since:
        9.6.6
      • findById

        public net.risesoft.pojo.Y9Result<EleAttachmentModel> findById​(@RequestParam
                                                                       String tenantId,
                                                                       @RequestParam
                                                                       String id)
        根据附件id获取附件信息
        Specified by:
        findById in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        id - 附件id
        Returns:
        Y9Result<AttachmentModel> 通用请求返回对象 - data是附件对象
        Since:
        9.6.8
      • findByProcessSerialNumberAndAttachmentType

        public net.risesoft.pojo.Y9Result<List<EleAttachmentModel>> findByProcessSerialNumberAndAttachmentType​(@RequestParam
                                                                                                               String tenantId,
                                                                                                               @RequestParam
                                                                                                               String processSerialNumber,
                                                                                                               String attachmentType)
        获取附件列表
        Specified by:
        findByProcessSerialNumberAndAttachmentType in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        processSerialNumber - 流程编号
        attachmentType - 附件类型
        Returns:
        Y9Result<List<EleAttachmentModel>> 通用请求返回对象 - data是附件列表
        Since:
        9.6.6
      • findByProcessSerialNumberAndTypeOrderByTime

        public net.risesoft.pojo.Y9Result<List<EleAttachmentModel>> findByProcessSerialNumberAndTypeOrderByTime​(String tenantId,
                                                                                                                String processSerialNumber,
                                                                                                                String attachmentType)
        获取附件列表,根据时间排序
        Specified by:
        findByProcessSerialNumberAndTypeOrderByTime in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        processSerialNumber - 流程编号
        attachmentType - 附件类型
        Returns:
        Y9Result<List<EleAttachmentModel>> 通用请求返回对象 - data是附件列表
        Since:
        9.6.8
      • saveOrUpdate

        public net.risesoft.pojo.Y9Result<Object> saveOrUpdate​(@RequestParam
                                                               String tenantId,
                                                               @RequestBody
                                                               EleAttachmentModel eleAttachmentModel)
        保存或者更新附件信息
        Specified by:
        saveOrUpdate in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        eleAttachmentModel - 附件实体信息
        Returns:
        Y9Result<Object> 通用请求返回对象
        Since:
        9.6.8
      • saveOrder

        public net.risesoft.pojo.Y9Result<Object> saveOrder​(@RequestParam
                                                            String tenantId,
                                                            @RequestParam
                                                            String id1,
                                                            @RequestParam
                                                            String id2)
        附件排序
        Specified by:
        saveOrder in interface EleAttachmentApi
        Parameters:
        tenantId - 租户id
        id1 - 附件id1
        id2 - 附件id2
        Returns:
        Y9Result<Object> 通用请求返回对象
        Since:
        9.6.6