AllocationService.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package com.imed.costaccount.service;
  2. import cn.hutool.poi.excel.ExcelWriter;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.imed.costaccount.common.util.PageUtils;
  5. import com.imed.costaccount.model.dto.StartDTO;
  6. import com.imed.costaccount.model.Allocation;
  7. import com.imed.costaccount.model.vo.CollectDataFormVO;
  8. import org.apache.poi.ss.usermodel.Sheet;
  9. import java.util.List;
  10. /**
  11. * 成本分摊后表
  12. *
  13. * @author huangrui
  14. * @email
  15. * @date 2021-08-24 16:05:16
  16. */
  17. public interface AllocationService extends IService<Allocation> {
  18. /**
  19. * 分摊成本数据
  20. * @param startDTO {@link StartDTO}
  21. * @param hospId 医院id
  22. */
  23. void startAllocation(StartDTO startDTO, Long hospId);
  24. /**
  25. * 分摊后查询列表
  26. * @param year 年月 (yyyy-MM-dd)
  27. * @param responsibilityCode 责任中心代码
  28. * @param current 当前页
  29. * @param pageSize 当前页展示的数据大小
  30. * @param hospId 医院id
  31. * @return PageUtils
  32. */
  33. PageUtils queryAfterAllocation(String year, String responsibilityCode, Integer current, Integer pageSize, Long hospId);
  34. /**
  35. * 分摊后报表
  36. * @param year 年月(yyyy-MM-dd)
  37. * @param responsibilityCode 责任中心代码
  38. * @param hospId
  39. * @return List
  40. */
  41. CollectDataFormVO queryAfterAllocationForm(String year, String responsibilityCode, Long hospId);
  42. /**
  43. * 分摊报表导出
  44. * @param writer {@link ExcelWriter}
  45. * @param levelSort 分摊层级 就是第几次分摊
  46. * @param sheet 报表
  47. * @param year 年
  48. * @param month 月
  49. * @return
  50. */
  51. ExcelWriter getShareReportTemplate(ExcelWriter writer, Integer levelSort, Sheet sheet, Integer year, Integer month);
  52. }