AllocationQueryService.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.kcim.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.kcim.dao.model.AllocationQuery;
  4. import com.kcim.vo.CodeAndNameVO;
  5. import java.math.BigDecimal;
  6. import java.util.List;
  7. /**
  8. *
  9. *
  10. * @author huangrui
  11. * @email
  12. * @date 2021-08-26 08:51:45
  13. */
  14. public interface AllocationQueryService extends IService<AllocationQuery> {
  15. /**
  16. * 这个月总金额
  17. * @param dateYear
  18. * @param month
  19. * @param hospId
  20. * @return
  21. */
  22. BigDecimal getTotalMoney(int dateYear, int month, Long hospId);
  23. List<CodeAndNameVO> getRespCodeAndName(Long hospId, int dateYear, int month);
  24. List<CodeAndNameVO> getAccountCodeAndName(Long hospId, int dateYear, int month);
  25. BigDecimal getCountByRespAndAccounts(Long hospId, int dateYear, int month, String code, List<String> accountCodes);
  26. BigDecimal getTotalByAccountAndResps(Long hospId, int dateYear, int month, String code, List<String> respCodes);
  27. BigDecimal getTotalByAccountAndRespCode(Long hospId, int dateYear, int month, String accountCode, String responsibilityCode);
  28. /**
  29. * 获取这个月的分摊数据
  30. * @param hospId 医院id
  31. * @param year 年
  32. * @param month 月
  33. * @return 分摊数据查询
  34. */
  35. List<AllocationQuery> getAllByDate(Long hospId, int year, int month);
  36. List<AllocationQuery> getCostByDate(Long hospId, int year, int month,int originType);
  37. List<AllocationQuery> getByDate(int year, int month, Long hospId, List<Long> levelSorts);
  38. List<AllocationQuery> getByDateAndResp(int year, int month, Long hospId, String responsibilityCode);
  39. List<AllocationQuery> getByDateRespn(int year, int month, Long hospId, List<Long> shareLevelId, String responsibilityCode);
  40. List<AllocationQuery> getAcountAccounts(Long hospId, int dateYear, int month);
  41. List<AllocationQuery> getRespAcountAccounts(Long hospId, int dateYear, int month);
  42. List<AllocationQuery> getRespOriginAcountAccounts(Long hospId, int dateYear, int month);
  43. void batchInsertAllocationQuery(List<AllocationQuery> allocationQueryList);
  44. }