AllocationQueryMapper.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.kcim.dao.mapper;
  2. import com.kcim.dao.model.AllocationQuery;
  3. import com.kcim.vo.CodeAndNameVO;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.math.BigDecimal;
  7. import java.util.List;
  8. /**
  9. *
  10. *
  11. * @author huangrui
  12. * @date 2021-08-26 08:51:45
  13. */
  14. @Mapper
  15. public interface AllocationQueryMapper extends GenericBatchMapper<AllocationQuery> {
  16. BigDecimal getTotalMoney(@Param("dateYear") int dateYear, @Param("month") int month, @Param("hospId") Long hospId);
  17. List<CodeAndNameVO> getRespCodeAndName(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month);
  18. List<CodeAndNameVO> getAccountCodeAndName(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month);
  19. BigDecimal getCountByRespAndAccounts(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month, @Param("code") String code, @Param("accountCodes") List<String> accountCodes);
  20. BigDecimal getTotalByAccountAndResps(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month, @Param("code") String code, @Param("respCodes") List<String> respCodes);
  21. BigDecimal getTotalByAccountAndRespCode(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month, @Param("accountCode") String accountCode, @Param("responsibilityCode") String responsibilityCode);
  22. /**
  23. * 获取医院所有会计科目成本(临床层的)
  24. * @param hospId
  25. * @param dateYear
  26. * @param month
  27. * @return
  28. */
  29. List<AllocationQuery> getAcountAccounts(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month);
  30. /**
  31. * 获取医院各责任中心所有会计科目成本
  32. * @param hospId
  33. * @param dateYear
  34. * @param month
  35. * @return
  36. */
  37. List<AllocationQuery> getRespAcountAccounts(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month);
  38. /**
  39. * 获取医院各责任中心不同来源类型的会计科目成本
  40. * @param hospId
  41. * @param dateYear
  42. * @param month
  43. * @return
  44. */
  45. List<AllocationQuery> getRespOriginAcountAccounts(@Param("hospId") Long hospId, @Param("dateYear") int dateYear, @Param("month") int month);
  46. }