AccountingService.java 1.7 KB

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