ShareParamValueService.java 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. package com.kcim.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.kcim.common.util.PageUtils;
  4. import com.kcim.common.util.Result;
  5. import com.kcim.dao.model.ShareParamValue;
  6. import com.kcim.dao.model.dto.CopyShareParamValueDTO;
  7. import com.kcim.dao.model.dto.ShareParamValueEditDTO;
  8. import com.kcim.dao.model.dto.ShareParamValueSaveDTO;
  9. import org.springframework.web.multipart.MultipartFile;
  10. import java.util.List;
  11. /**
  12. * 成本分摊参数值设置
  13. *
  14. * @author huangrui
  15. * @email fantaandcolo@gmail.com
  16. * @date 2021-08-17 10:03:48
  17. */
  18. public interface ShareParamValueService extends IService<ShareParamValue> {
  19. /**
  20. * 成本分摊参数导入
  21. *
  22. * @param read
  23. * @param file
  24. * @param dateTime
  25. * @param fileType
  26. * @return
  27. */
  28. Result importShareParamGroup(List<List<Object>> read, MultipartFile file, String dateTime, Integer fileType);
  29. /**
  30. * 添加分摊参数值
  31. * @param shareParamValueSaveDTO {@link ShareParamValueSaveDTO}
  32. * @param hospId 医院id
  33. */
  34. public void addData(ShareParamValueSaveDTO shareParamValueSaveDTO, Long hospId);
  35. /**
  36. * 分摊参数值列表
  37. *
  38. * @param current 当前页
  39. * @param pageSize 每页数据量大小
  40. * @param date 日期
  41. * @param shareParamCode 分摊参数代码
  42. * @param responsibilityCode 责任中心代码
  43. * @param hospId 医院id
  44. * @return {@link PageUtils} 分页对象
  45. */
  46. PageUtils selectList(Integer current, Integer pageSize, String date, String shareParamCode, String responsibilityCode, Long hospId);
  47. /**
  48. * 复制数据从某年月到某年月
  49. * @param copyShareParamValueDTO {@link CopyShareParamValueDTO}
  50. * @param hospId 医院id
  51. */
  52. void copyData(CopyShareParamValueDTO copyShareParamValueDTO, Long hospId) ;
  53. /**
  54. * 编辑某条数据
  55. * @param shareParamValueEditDTO {@link ShareParamValueEditDTO}
  56. * @param hospId 医院id
  57. */
  58. void editParamValue(ShareParamValueEditDTO shareParamValueEditDTO, Long hospId);
  59. /**
  60. * 计算数值
  61. *
  62. * @param date 日期 yyyyMM
  63. * @param hospId 医院id
  64. */
  65. void calcData(String date, Long hospId);
  66. /**
  67. * 得到这个月导入的成本分摊参数值列表 ,聚合过
  68. * @param year 年
  69. * @param month 月
  70. * @param hospId 医院id
  71. * @return 某月成本分摊参数值
  72. */
  73. List<ShareParamValue> getListByYearAndMonth(Integer year, Integer month, Long hospId);
  74. /**
  75. * 成本分摊参数值批量删除
  76. * @param asList id集合
  77. */
  78. void deleteByIds(List<Long> asList);
  79. }