package cn.pluss.platform.userIntegralUse.impl;

import cn.pluss.platform.entity.UserIntegralUse;
import cn.pluss.platform.mapper.UserIntegralUseMapper;
import cn.pluss.platform.userIntegralUse.UserIntegralUseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 用户积分使用详情 服务实现类
 * </p>
 *
 * @author crystal
 * @since 2022-05-19
 */
@Service
public class UserIntegralUseServiceImpl extends ServiceImpl<UserIntegralUseMapper, UserIntegralUse> implements UserIntegralUseService {

    @Override
    public BigDecimal getUseIntegral(Serializable userId, String date) {
        return baseMapper.getUseIntegral(userId,date);
    }

    @Override
    public Page pageInfo(Page<UserIntegralUse> page, UserIntegralUse query) {
        return baseMapper.pageInfo(page,query);
    }
}
