AccountingService.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.kcim.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.kcim.dao.model.dto.AccountingEditDTO;
  4. import com.kcim.dao.model.dto.AccountingSaveDTO;
  5. import com.kcim.vo.AccountVO;
  6. import com.kcim.dao.model.Accounting;
  7. import com.kcim.vo.SelectAccountingVO;
  8. import java.util.List;
  9. /**
  10. * 会计科目管理表
  11. *
  12. * @author huangrui
  13. * @email
  14. * @date 2021-07-28 13:52:24
  15. */
  16. public interface AccountingService extends IService<Accounting> {
  17. /**
  18. * 获取会计科目列表按收入支出类型
  19. *
  20. * @param accountType 会计科目类型1.收入,2.支出
  21. * @param shareParamId
  22. * @return
  23. */
  24. List<AccountVO> getListByAccountType(Integer accountType, Integer shareParamId, Integer incomeGroutSetId);
  25. /**
  26. * 保存会计科目
  27. *
  28. * @param accountingSaveDTO
  29. */
  30. void saveAccounting(AccountingSaveDTO accountingSaveDTO);
  31. /**
  32. * 选择会计科目列表
  33. *
  34. * @return
  35. */
  36. List<SelectAccountingVO> selectAccounting();
  37. /**
  38. * 编辑科目代码
  39. *
  40. * @param accountingEditDTO
  41. */
  42. void updateAccount(AccountingEditDTO accountingEditDTO);
  43. /**
  44. * 删除
  45. *
  46. * @param id
  47. */
  48. void deleteAccount(Long id);
  49. /**
  50. * 通过code得到对应的会计科目对象 需要调用者自己判断空
  51. *
  52. * @param accountCode 会计科目代码
  53. * @return {@link Accounting} 可能为空 需要调用者自行判断
  54. */
  55. Accounting getByCode(String accountCode,Long hospId);
  56. }