package com.yunyan.business.service.impl;




import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunyan.business.mapper.StatisticsMapper;
import com.yunyan.business.pojo.admin.dto.StatisticsDto;
import com.yunyan.business.pojo.admin.vo.StatisticsVo;
import com.yunyan.business.service.IStatisticsService;
import com.yunyan.common.annotation.DataScope;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报告数据Service业务层处理
 *
 * @author yunyan
 * @date 2023-08-16
 */
@Slf4j
@Service
public class StatisticsServicsImpl extends ServiceImpl<StatisticsMapper, StatisticsVo> implements IStatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    /**
     * 查询数据统计接口
     * @param statisticsDto 入参实体类
     * @return 返回数据统计集合
     */
    @DataScope(deptAlias = "sys", userAlias = "t")
    @Override
    public List<StatisticsVo> statisticsPage(StatisticsDto statisticsDto) {
        return statisticsMapper.statisticsPage(statisticsDto);
    }
}
