package cn.reghao.tnb.user.app.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.tnb.user.app.model.po.WalletBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2024-04-16 16:51:51
 */
@Mapper
public interface WalletBillMapper extends BaseMapper<WalletBill> {
    List<WalletBill> findByOwner(@Param("pageSize") int pageSize, @Param("owner") long owner);
    double findSumByTypeAndOwner(@Param("type") int type, @Param("owner") long owner);
}
