DocumentMapper.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.gqy.document.mapper;
  2. import com.gqy.document.domain.Document;
  3. import org.apache.ibatis.annotations.Param;
  4. import java.util.List;
  5. import java.util.Map;
  6. /**
  7. * 【请填写功能名称】Mapper接口
  8. *
  9. * @author raycos
  10. * @date 2024-10-30
  11. */
  12. public interface DocumentMapper
  13. {
  14. /**
  15. * 新增文档
  16. */
  17. public int insertDocument(Document document);
  18. /**
  19. * 校验文档标题是否唯一
  20. */
  21. public Document checkDocumentTitleUnique(@Param("title") String title, @Param("is_template") Integer is_template);
  22. /**
  23. * 查询文档列表
  24. */
  25. List<Map<String, Object>> pageDocument(Document document);
  26. /**
  27. * 查询文档列表
  28. *
  29. * @param document 文档信息
  30. * @return 文档集合
  31. */
  32. public List<Document> selectDocumentList(Document document);
  33. /**
  34. * 查询文档详情
  35. *
  36. * @param id 文档ID
  37. * @return 文档信息
  38. */
  39. public Document info(Long id);
  40. /**
  41. * 获取文档关联的产品ID列表
  42. *
  43. * @param documentId 文档ID
  44. * @return 关联的产品ID列表
  45. */
  46. List<Long> selectProductDocumentsByDocId(Long documentId);
  47. /**
  48. * 获取文档关联的项目ID列表
  49. *
  50. * @param documentId 文档ID
  51. * @return 关联的项目ID列表
  52. */
  53. List<Long> selectProjectDocumentsByDocId(Long documentId);
  54. }