AllocationQueryService.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.imed.costaccount.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.imed.costaccount.model.AllocationQuery;
  4. import com.imed.costaccount.model.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. }