package com.yeejoin.amos.boot.module.jcs.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto;
import com.yeejoin.amos.boot.module.jcs.api.dto.StatusDto;
import com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled;
import com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 调派单位资源 Mapper 接口
 *
 * @author tb
 * @date 2021-06-17
 */
public interface PowerTransferCompanyResourcesMapper extends BaseMapper<PowerTransferCompanyResources> {

    AlertCalled getByPowerTransferCompanyResourId(Long id);

    PowerTransferCompanyResources getByAlertCalledIdCarId(Long alertCalledId, Long carId);

    void updateByAlertCalledId(Long alertCalledId);

    List<StatusDto> findStatusByIds(@Param("ids") List<Long> ids);

}
