CostCostingGroupService.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.CostCostingGroup;
  6. import com.kcim.vo.CommonDepartVo;
  7. import org.springframework.web.multipart.MultipartFile;
  8. import java.util.List;
  9. /**
  10. * 成本归集
  11. *
  12. * @author KCYG
  13. * @email KCYG@xinxicom
  14. * @date 2021-08-12 11:00:23
  15. */
  16. public interface CostCostingGroupService extends IService<CostCostingGroup> {
  17. /**
  18. * 批量导入成本数据
  19. *
  20. * @param read
  21. * @param file
  22. * @param dateTime
  23. * @param fileType
  24. * @return
  25. */
  26. Result importCostingGroup(List<List<Object>> read, MultipartFile file, String dateTime, Integer fileType);
  27. /**
  28. * 分摊前查询
  29. *
  30. * @param current 当前页
  31. * @param pageSize 每页数据大小
  32. * @param responsibilityCode 责任中心代码
  33. * @param accountCode 会计中心代码
  34. * @param date 日期 yyyy-MM-dd
  35. * @param hospId 医院id
  36. * @param departmentCode
  37. * @param filter
  38. * @return 分摊前查询列表
  39. */
  40. PageUtils queryStartAllocation(Integer current, Integer pageSize, String responsibilityCode, String accountCode, String date, Long hospId, String departmentCode, String filter);
  41. /**
  42. * 成本分摊列表
  43. * @param current 当前页
  44. * @param pageSize 每页数据大小
  45. * @param date 日期 这里是 yyyy-MM-dd
  46. * @param hospId 医院id
  47. * @return 分页对象
  48. */
  49. PageUtils queryAllocation(Integer current, Integer pageSize, String date, Long hospId);
  50. /**
  51. * 得到这个月的所有导入的成本数据
  52. * @param year 年
  53. * @param month 月
  54. * @param hospId 医院id
  55. * @return List
  56. */
  57. List<CostCostingGroup> getByYearAndDate(Integer year, Integer month, Long hospId);
  58. /**
  59. * 撤销分摊
  60. * @param year
  61. * @param month
  62. * @param hospId
  63. */
  64. void cancelAllocation(Integer year, Integer month, Long hospId);
  65. List<CostCostingGroup> getRealData(List<Long> maxId, Long hospId, Integer year, Integer month);
  66. List<CommonDepartVo> getDepartment(Integer type, String computeDate, String departmentName);
  67. void removeCost(String computeDate);
  68. }