CostIncomeGroupMapper.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.imed.costaccount.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.imed.costaccount.model.CostIncomeGroup;
  4. import com.imed.costaccount.model.vo.CollectionVO;
  5. import com.imed.costaccount.model.vo.CostIncomeGroupAllAmountBO;
  6. import com.imed.costaccount.model.vo.CostIncomeGroupAllAmountVO;
  7. import org.apache.ibatis.annotations.Mapper;
  8. import org.apache.ibatis.annotations.Param;
  9. import java.util.List;
  10. /**
  11. * 收入归集
  12. *
  13. * @author KCYG
  14. * @date 2021-08-03 16:15:20
  15. */
  16. @Mapper
  17. public interface CostIncomeGroupMapper extends BaseMapper<CostIncomeGroup> {
  18. /**
  19. * 按照开单科室 执行科室 成本项目进行筛选相同的金额汇总
  20. *
  21. * @param idList
  22. * @return
  23. */
  24. List<CostIncomeGroupAllAmountVO> countMoney(@Param("idList") List<Long> idList);
  25. /**
  26. * 获取收入归集分页列表
  27. *
  28. * @param startIndex 起始页
  29. * @param pageSize 页码数据大小
  30. * @param date 日期 yyyy-MM-dd
  31. * @param hospId 医院id
  32. * @return {@link CollectionVO}
  33. */
  34. List<CollectionVO> getCollections(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize,
  35. @Param("date") String date, @Param("hospId") Long hospId);
  36. /**
  37. * 获取收入归集分页列表
  38. *
  39. * @param date 日期 yyyy-MM-dd
  40. * @param hospId 医院id
  41. * @return 获取收入归集分页列表的总数
  42. */
  43. int getCollectionCount(@Param("date") String date, @Param("hospId") Long hospId);
  44. List<CostIncomeGroupAllAmountBO> selectListAndMoney(@Param("year") Integer year, @Param("month") Integer month, @Param("hospId") Long hospId);
  45. }