AllocationMapper.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.imed.costaccount.mapper;
  2. import com.imed.costaccount.model.Allocation;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import com.imed.costaccount.model.vo.AfterAllocationVO;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.math.BigDecimal;
  8. import java.util.List;
  9. /**
  10. * 成本分摊后表
  11. *
  12. * @author huangrui
  13. * @date 2021-08-24 16:05:16
  14. */
  15. @Mapper
  16. public interface AllocationMapper extends BaseMapper<Allocation> {
  17. /**
  18. * 分摊后查询列表
  19. * @param dateYear 年
  20. * @param dateMonth 月
  21. * @param responsibilityCode 责任中心
  22. * @param startIndex 开始索引
  23. * @param pageSize 页数
  24. * @param hospId 医院id
  25. * @return List
  26. */
  27. List<AfterAllocationVO> queryAfterAllocationList(@Param("dateYear") Integer dateYear,
  28. @Param("dateMonth") Integer dateMonth,
  29. @Param("responsibilityCode") String responsibilityCode,
  30. @Param("startIndex") Integer startIndex,
  31. @Param("pageSize") Integer pageSize, Long hospId);
  32. /**
  33. * 总数
  34. * @param dateYear 年
  35. * @param dateMonth 月
  36. * @param responsibilityCode 责任中心
  37. * @param hospId 医院id
  38. * @return 总数
  39. */
  40. int queryAfterAllocationListCount(@Param("dateYear") Integer dateYear,
  41. @Param("dateMonth") Integer dateMonth,
  42. @Param("responsibilityCode") String responsibilityCode,
  43. @Param("hospId") Long hospId);
  44. /**
  45. * 总金额
  46. * @param dateYear 年
  47. * @param dateMonth 月
  48. * @param responsibilityCode 责任中心
  49. * @param hospId 医院id
  50. * @return 总数
  51. */
  52. BigDecimal queryAfterAllocationListSum(@Param("dateYear") Integer dateYear,
  53. @Param("dateMonth") Integer dateMonth,
  54. @Param("responsibilityCode") String responsibilityCode,
  55. @Param("hospId") Long hospId);
  56. }