package com.elephant.framework.galaxy.aroad.module.roadcondition.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.roadcondition.dto.*;
import com.elephant.framework.galaxy.aroad.module.roadcondition.entity.RoadConditionEvent;
import com.elephant.framework.galaxy.aroad.module.roadcondition.mapper.RoadConditionEventMapper;
import com.elephant.framework.galaxy.aroad.module.roadcondition.service.RoadConditionEventService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 路况事件统计
 *
 * @author Xingyuyang
 * @date 2019-04-23 16:41:06
 */
@Service
public class RoadConditionEventServiceImpl
    extends ServiceImpl<RoadConditionEventMapper, RoadConditionEvent>
    implements RoadConditionEventService {

  /**
   * @description : 根据事件类型查询
   * @author : Xingyuyang
   * @date : 2019/4/23 0023 17:54
   * @param :
   * @return : null
   */
  //  @Cacheable(value = "staticByEventType")
  public List<staticByEventTypeDto> staticByEventType() {
    return baseMapper.staticByEventType();
  }

  /**
   * @description : 根据影响程度查询
   * @author : Xingyuyang
   * @date : 2019/4/23 0023 17:54
   * @param :
   * @return : null
   */
  //  @Cacheable(value = "staticByInfluence")
  public List<staticByInfluenceDto> staticByInfluence() {
    return baseMapper.staticByInfluence();
  }

  /**
   * @description : 根据月份查询
   * @author : Xingyuyang
   * @date : 2019-4-24 10:27:35
   * @param :
   * @return : null
   */
  //  @Cacheable(value = "staticByMonth")
  public List<staticByMonthDto> staticByMonth() {
    return baseMapper.staticByMonth();
  }

  /**
   * @description : 根据月份查询
   * @author : Xingyuyang
   * @date : 2019-4-24 10:27:35
   * @param :
   * @return : null
   */
  //  @Cacheable(value = "staticByRoadCode")
  public List<staticByRoadCodeDto> staticByRoadCode() {
    return baseMapper.staticByRoadCode();
  }

  /**
   *
   * @description :  根据城市查询
   * @author : Xingyuyang
   * @date : 2019/4/24 0024 14:27

   * @return : java.util.List<com.elephant.framework.galaxy.aroad.module.roadcondition.dto.staticByCityDto>
   *
   */
  public List<staticByCityDto> staticByCity(){
    return baseMapper.staticByCity();
  }
}
