ReportVersionService.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package jnpf.service;
  2. import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
  3. import jnpf.base.Pagination;
  4. import jnpf.base.service.SuperService;
  5. import jnpf.entity.ReportVersionEntity;
  6. import jnpf.model.report.ReportCrForm;
  7. import jnpf.model.report.ReportPagination;
  8. import jnpf.model.report.UploaderVO;
  9. import jnpf.univer.model.UniverPreview;
  10. import org.springframework.web.multipart.MultipartFile;
  11. import java.io.IOException;
  12. import java.util.List;
  13. import java.util.Map;
  14. /**
  15. * @author :JNPF开发平台组
  16. * @version: V3.1.0
  17. * @copyright 引迈信息技术有限公司
  18. * @date :2024/5/11 下午4:35
  19. */
  20. public interface ReportVersionService extends SuperService<ReportVersionEntity> {
  21. /**
  22. * 创建版本
  23. *
  24. * @param form
  25. */
  26. void create(ReportCrForm form);
  27. /**
  28. * 获取版本列表
  29. *
  30. * @param templateId
  31. * @return
  32. */
  33. List<ReportVersionEntity> getList(String templateId, SFunction<ReportVersionEntity, ?>... columns);
  34. /**
  35. * 复制版本(点击新增版本)
  36. *
  37. * @param versionId
  38. */
  39. String copyVersion(String versionId);
  40. /**
  41. * 根据id删除版本
  42. *
  43. * @param templateId
  44. * @return
  45. */
  46. void removeByTemplateId(String templateId);
  47. /**
  48. * 预览数据
  49. *
  50. * @return
  51. */
  52. UniverPreview preview(String id, ReportPagination pagination, Map<String, Object> params);
  53. /**
  54. * 预览数据
  55. *
  56. * @return
  57. */
  58. UniverPreview previewTemplate(String id, ReportPagination pagination, Map<String, Object> params);
  59. /**
  60. * 导入excel
  61. *
  62. * @param multipartFile
  63. */
  64. UniverPreview importExcel(MultipartFile multipartFile) throws IOException;
  65. /**
  66. * 导出excel
  67. *
  68. */
  69. UploaderVO downExcel(ReportPagination pagination, Map<String, Object> params);
  70. /**
  71. * 导出excel
  72. *
  73. * @param pagination
  74. */
  75. UploaderVO downExcel(ReportPagination pagination);
  76. }