AllocationService.java 2.1 KB

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