NodeAttachmentService.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.siwei.apply.service;
  2. import com.siwei.apply.domain.NodeAttachment;
  3. import java.util.List;
  4. import java.util.Map;
  5. /**
  6. * 记录流程对应的附件材料 服务接口
  7. */
  8. public interface NodeAttachmentService {
  9. /**
  10. * 根据ID查询附件信息
  11. *
  12. * @param id 附件ID
  13. * @return NodeAttachment
  14. */
  15. NodeAttachment getById(String id);
  16. /**
  17. * 根据节点ID查询附件信息
  18. *
  19. * @param nodeId 节点ID
  20. * @return NodeAttachment
  21. */
  22. NodeAttachment getByNodeId(String nodeId);
  23. /**
  24. * 处理文件并保存附件信息
  25. *
  26. * @param filePath 文件路径
  27. * @return 数据库存储后的id
  28. */
  29. String processFileAndSave(String filePath);
  30. /**
  31. * 删除节点附件信息
  32. *
  33. * @param nodeId 节点ID
  34. */
  35. void deleteByNodeId(String nodeId);
  36. /**
  37. * 更新附件记录的nodeId
  38. *
  39. * @param nodeAttachmentId 附件记录ID
  40. * @param nodeId 节点ID
  41. * @return 是否更新成功
  42. */
  43. boolean updateNodeId(String nodeAttachmentId, String nodeId);
  44. String deleteFileAndSave(String path,String nodeAttachmentId ,String filePath);
  45. List<NodeAttachment> getByNodeIdList(List<String> nodeIdList);
  46. }