package cn.ysk.cashier.mybatis.service;

import cn.ysk.cashier.mybatis.entity.TbShopUserFlow;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author GYJ
 */
public interface TbShopUserFlowService extends IService<TbShopUserFlow> {

    BigDecimal sumUserFlowAmountByConditions(Long shopId, String startTime, String endTime);


    IPage<Map<String, Object>> selectByUserId(Integer userId, Integer page, Integer pageSize);

    Integer selectCountByUserId(Integer userId);
}
