package com.red.circle.order.infra.database.rds.service.count;

import com.red.circle.framework.mybatis.service.BaseService;
import com.red.circle.order.infra.database.rds.entity.count.UserFreightRechargeRecord;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 用户货运代理充值记录 服务类.
 * </p>
 *
 * @author zongpubin on 2023-11-23 12:31
 */
public interface UserFreightRechargeRecordService extends BaseService<UserFreightRechargeRecord> {

  /**
   * 获取本月用户充值记录
   */
  UserFreightRechargeRecord getNowMonthByUserId(Long createUserId);

  /**
   * 查询充值金额大于2000的用户
   */
  List<Long> listNowMonthBySysOrigin(String sysOrigin);

  /**
   * 统计用户充值金额
   */
  BigDecimal countAmount(Long userId);

}
