package com.elephant.framework.galaxy.aroad.module.emergency.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.emergency.dto.TeamCoordinateDto;
import com.elephant.framework.galaxy.aroad.module.emergency.entity.EmergencyTeam;
import com.elephant.framework.galaxy.aroad.module.emergency.vo.EmergencyMaterialAndEquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songwenjie
 * @date 2019-03-21 09:50:15
 */
public interface EmergencyTeamMapper extends BaseMapper<EmergencyTeam> {

    EmergencyMaterialAndEquipmentVo getEmergencyMaterialAndEquipmentVo(Long id);

    /**
     * @Description: 查询应急队伍坐标信息
     * @Param: []
     * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.emergency.dto.CoordinateDto>
     * @Author: songwenjie
     * @Date: 2019/4/2
     */
    List<TeamCoordinateDto> getCoordinates();

    /**
     * @Description: 查询在目标范围内的应急队伍及其物资信息
     * @Param: [ids]
     * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.emergency.vo.EmergencyMaterialAndEquipmentVo>
     * @Author: songwenjie
     * @Date: 2019/4/2
     */
    List<EmergencyMaterialAndEquipmentVo> getGoalTeamVo(@Param("ids") List<Integer> ids);

    /**
     * @Description: 根据队伍id删除相关信息
     * @Param:
     * @return:
     * @Author: XingYuyang
     * @Date: 2019-04-15 15:57:26
     */
    boolean removeById(@Param("teamId") String teamId);

    /**
     * @Description: 新增队伍信息
     * @Author: XingYuyang
     * @Date: 2019-04-16 10:36:00
     */
    boolean save(EmergencyTeam emergencyTeam);

    /**
     * @Description: 修改队伍信息
     * @Author: XingYuyang
     * @Date: 2019-04-16 10:36:00
     * @return
     */
    boolean updateWithId(EmergencyTeam emergencyTeam);
}
