CostCostingGroupService.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.common.util.Result;
  5. import com.imed.costaccount.model.CostCostingGroup;
  6. import com.imed.costaccount.model.User;
  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. * @param read
  20. * @param user
  21. * @param file
  22. * @param dateTime
  23. * @param fileType
  24. * @return
  25. */
  26. Result importCostingGroup(List<List<Object>> read, User user, 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. * @return 分摊前查询列表
  37. */
  38. PageUtils queryStartAllocation(Integer current, Integer pageSize, String responsibilityCode, String accountCode, String date, Long hospId);
  39. /**
  40. * 成本分摊列表
  41. * @param current 当前页
  42. * @param pageSize 每页数据大小
  43. * @param date 日期 这里是 yyyy-MM-dd
  44. * @param hospId 医院id
  45. * @return 分页对象
  46. */
  47. PageUtils queryAllocation(Integer current, Integer pageSize, String date, Long hospId);
  48. /**
  49. * 得到这个月的所有导入的成本数据
  50. * @param year 年
  51. * @param month 月
  52. * @param hospId 医院id
  53. * @return List
  54. */
  55. List<CostCostingGroup> getByYearAndDate(Integer year, Integer month, Long hospId);
  56. /**
  57. * 撤销分摊
  58. * @param year
  59. * @param month
  60. * @param hospId
  61. */
  62. void cancelAllocation(Integer year, Integer month, Long hospId);
  63. List<CostCostingGroup> getRealData(List<Long> maxId, Long hospId, Integer year, Integer month);
  64. }