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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.emergency.dto.MaterialHouseCoordinateDto;
import com.elephant.framework.galaxy.aroad.module.emergency.dto.TeamEquipmentInfoDto;
import com.elephant.framework.galaxy.aroad.module.emergency.entity.MaterialHouse;
import com.elephant.framework.galaxy.aroad.module.emergency.mapper.MaterialHouseMapper;
import com.elephant.framework.galaxy.aroad.module.emergency.service.MaterialHouseService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author songwenjie
 * @date 2019-03-21 14:48:31
 */
@Service
public class MaterialHouseServiceImpl extends ServiceImpl<MaterialHouseMapper, MaterialHouse> implements MaterialHouseService {
    @Cacheable("materialHouseCoordinates")
    public List<MaterialHouseCoordinateDto> getCoordinates() {
        return baseMapper.getCoordinates();
    }
    /**
     * @Description: 获取队伍列表
     * @Param:
     * @return:
     * @Author: XingYuyang
     * @Date: 2019-04-15 10:11:13
     */
    @Cacheable(value = "getTeamsC")
    public List<TeamEquipmentInfoDto> getTeams() {
        return baseMapper.getTeams();
    }
}
