package com.ym.mec.collectfee.service;

import com.ym.mec.collectfee.common.service.BaseService;
import com.ym.mec.collectfee.entity.Account;
import com.ym.mec.collectfee.entity.Order;

public interface AccountService extends BaseService<Integer, Account> {

    /**
     * 根据分部id获取收款账户信息
     * @param branchId 分部id
     * @return
     */
    Account getAccountByBranchId(Integer branchId);

    /**
     *  根据id和version更新已收款
     * @param account
     * @return
     */
    int upByIdAndVersion(Account account);

}