AccountingService.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. * @param filter
  23. * @return
  24. */
  25. List<AccountVO> getListByAccountType(Integer accountType, Integer shareParamId, Integer incomeGroutSetId, String filter);
  26. /**
  27. * 保存会计科目
  28. *
  29. * @param accountingSaveDTO
  30. */
  31. void saveAccounting(AccountingSaveDTO accountingSaveDTO);
  32. /**
  33. * 选择会计科目列表
  34. *
  35. * @return
  36. */
  37. List<SelectAccountingVO> selectAccounting();
  38. /**
  39. * 编辑科目代码
  40. *
  41. * @param accountingEditDTO
  42. */
  43. void updateAccount(AccountingEditDTO accountingEditDTO);
  44. /**
  45. * 删除
  46. *
  47. * @param id
  48. */
  49. void deleteAccount(Long id);
  50. /**
  51. * 通过code得到对应的会计科目对象 需要调用者自己判断空
  52. *
  53. * @param accountCode 会计科目代码
  54. * @return {@link Accounting} 可能为空 需要调用者自行判断
  55. */
  56. Accounting getByCode(String accountCode,Long hospId);
  57. Object getAccountTypeDict(Integer type);
  58. List<Accounting> getAccountList(Long hospId, List<String> accountList);
  59. }