package com.storlead.trade.service.impl;

import com.storlead.trade.entity.CustomerAnalysisResultEntity;
import com.storlead.trade.mapper.CustomerAnalysisResultEntityMapper;
import com.storlead.trade.service.CustomerAnalysisResultEntityService;
import com.storlead.framework.mybatis.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CustomerAnalysisResultEntityServiceImpl
        extends MyBaseServiceImpl<CustomerAnalysisResultEntityMapper, CustomerAnalysisResultEntity>
        implements CustomerAnalysisResultEntityService {

    @Override
    public List<Map<String, Object>> getStatisticsByCustomerLevel() {
        return baseMapper.selectStatisticsByCustomerLevel();
    }

    @Override
    public List<Map<String, Object>> getStatisticsByCustomerLevel(String analysisScene, Integer analysisStatus) {
        return baseMapper.selectStatisticsByCustomerLevelWithFilter(analysisScene, analysisStatus);
    }
}
