package com.wzj.soopin.transaction.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wzj.soopin.member.domain.bo.AccountBillBO;
import com.wzj.soopin.member.domain.po.AccountBill;
import com.wzj.soopin.member.domain.vo.AccountBillVO;
import com.wzj.soopin.member.domain.vo.AccountStatisticVO;
import com.wzj.soopin.member.enums.AccountBillSourceEnum;

import java.math.BigDecimal;

public interface IAccountBillService extends IService<AccountBill> {

    AccountStatisticVO getStatistic(String tenantId);

    IPage<AccountBillVO> selectVoPage(AccountBillBO bo);


    boolean addMoney(BigDecimal money, Long memberId, AccountBillSourceEnum type, String remark);

    boolean reduceMoney(BigDecimal money, Long memberId, AccountBillSourceEnum type, String remark);

}
