AllocationService.java 2.3 KB

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