package com.imed.costaccount.service; import com.baomidou.mybatisplus.extension.service.IService; import com.imed.costaccount.model.User; import com.imed.costaccount.model.dto.AccountingEditDTO; import com.imed.costaccount.model.dto.AccountingSaveDTO; import com.imed.costaccount.model.vo.AccountVO; import com.imed.costaccount.model.Accounting; import com.imed.costaccount.model.vo.SelectAccountingVO; import java.util.List; /** * 会计科目管理表 * * @author huangrui * @email * @date 2021-07-28 13:52:24 */ public interface AccountingService extends IService { /** * 获取会计科目列表按收入支出类型 * @param accountType 会计科目类型1.收入,2.支出 * @param user * @param shareParamId * @return */ List getListByAccountType(Integer accountType, User user, Integer shareParamId,Integer incomeGroutSetId); /** * 保存会计科目 * @param accountingSaveDTO * @param user */ void saveAccounting(AccountingSaveDTO accountingSaveDTO, User user); /** * 选择会计科目列表 * @param user * @return */ List selectAccounting(User user); /** * 编辑科目代码 * @param accountingEditDTO * @param user */ void updateAccount(AccountingEditDTO accountingEditDTO, User user); /** * 删除 * @param id * @param user */ void deleteAccount(Long id, User user); /** * 通过code得到对应的会计科目对象 需要调用者自己判断空 * * @param accountCode 会计科目代码 * @return {@link Accounting} 可能为空 需要调用者自行判断 */ Accounting getByCode(String accountCode,Long hospId); }