package com.djhk.uav.uav.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.djhk.uav.uav.model.UavOrganization;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 无人机编队Mapper接口
 *
 * @author jiachengshuai
 * @date 2023-02-28
 */
@Mapper
public interface UavOrganizationMapper extends BaseMapper<UavOrganization>
{
    /**
     * 查询无人机编队
     *
     * @param id 无人机编队主键
     * @return 无人机编队
     */
    public UavOrganization selectUavOrganizationById(Long id);

    /**
     * 查询无人机编队列表
     *
     * @param uavOrganization 无人机编队
     * @return 无人机编队集合
     */
    public List<UavOrganization> selectUavOrganizationList(UavOrganization uavOrganization);

    /**
     * 新增无人机编队
     *
     * @param uavOrganization 无人机编队
     * @return 结果
     */
    public int insertUavOrganization(UavOrganization uavOrganization);

    /**
     * 修改无人机编队
     *
     * @param uavOrganization 无人机编队
     * @return 结果
     */
    public int updateUavOrganization(UavOrganization uavOrganization);

    /**
     * 删除无人机编队
     *
     * @param id 无人机编队主键
     * @return 结果
     */
    public int deleteUavOrganizationById(Long id);

    /**
     * 批量删除无人机编队
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUavOrganizationByIds(Long[] ids);
}
