CostShareLevelService.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.imed.costaccount.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.imed.costaccount.common.util.PageUtils;
  4. import com.imed.costaccount.model.CostShareLevel;
  5. import com.imed.costaccount.model.dto.CostShareLevelEditDto;
  6. import com.imed.costaccount.model.dto.CostShareLevelSaveDto;
  7. import com.imed.costaccount.model.vo.CostShareLevelVO;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. /**
  11. * 分摊层级对照表
  12. *
  13. * @author KCYG
  14. * @email KCYG@xinxicom
  15. * @date 2021-07-27 14:19:09
  16. */
  17. public interface CostShareLevelService extends IService<CostShareLevel> {
  18. /**
  19. * 分页查询相关分摊层级信息
  20. * @param current
  21. * @param pageSize
  22. * @param name
  23. * @param hospId
  24. * @return
  25. */
  26. PageUtils queryList(Integer current, Integer pageSize, String name, Long hospId);
  27. /**
  28. * 保存
  29. * @param costShareLevelSaveDto
  30. */
  31. void addCostShareLevel(CostShareLevelSaveDto costShareLevelSaveDto);
  32. /**
  33. * 修改分摊层级数据
  34. * @param costShareLevelEditDto
  35. */
  36. void updateByCostShareLevel(CostShareLevelEditDto costShareLevelEditDto);
  37. /**
  38. * 获取所有的分摊层级数据
  39. * @param hospId
  40. * @return
  41. */
  42. List<CostShareLevelVO> getAll(Long hospId);
  43. /**
  44. * 通过分摊层级序号得到分摊层级列表
  45. * @param targetLevelList
  46. * @param hospId
  47. * @return
  48. */
  49. List<CostShareLevel> getListByLevelSort(ArrayList<String> targetLevelList, Long hospId);
  50. List<Long> getMaxId(Long hospId);
  51. /**
  52. * 删除分摊等级的数据
  53. * @param idList 分摊层级的id
  54. */
  55. void deleteByIds(List<Integer> idList);
  56. }