package com.zksy.base.warning.service.impl;

import com.zksy.base.warning.mapper.EarlyWarningMapper;
import com.zksy.base.warning.service.IEarlyWarningDisposeStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Service
public class EarlyWarningDisposeStatusServiceImpl implements IEarlyWarningDisposeStatusService {

    @Autowired
    private EarlyWarningMapper earlyWarningMapper;

    @Override
    public List<Map<String, Object>> getWarningStatusStat(LocalDateTime startTime,
                                                          LocalDateTime endTime,
                                                          String warningSpecial) {
        return earlyWarningMapper.selectWarningGroupByStatus(startTime, endTime, warningSpecial);
    }
}