package com.wzj.soopin.statistics.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzj.soopin.statistics.mapper.DistributionCashStatisticsMapper;
import com.wzj.soopin.statistics.service.DistributionCashStatisticsService;
import org.apache.commons.math3.analysis.function.Divide;
import org.springframework.stereotype.Service;


/**
 * 分销佣金统计层实现
 *
 * @author pikachu
 * @since 2020-03-126 18:04:56
 */
@Service
public class DistributionCashStatisticsServiceImpl extends ServiceImpl<DistributionCashStatisticsMapper, Divide>
        implements DistributionCashStatisticsService {


    @Override
    public long newDistributionCash() {
        QueryWrapper queryWrapper = Wrappers.query();
//        queryWrapper.eq("distribution_cash_status", Withdr.APPLY.name());
        return this.count(queryWrapper);
    }
}
