package com.casic.missiles.mapper.business;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.casic.missiles.dto.business.interchange.*;
import com.casic.missiles.model.business.BusinessInterchange;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 业务管理-设备交接单 Mapper 接口
 * </p>
 *
 * @author wangpeng
 * @since 2023-02-02
 */
public interface BusinessInterchangeMapper extends BaseMapper<BusinessInterchange> {

    List<InterchangeListResponse> selectInterchangeListPage(@Param("page") Page<InterchangeListResponse> page, @Param("request") InterchangeListRequest request);

    BusinessInterchangeDetailResponse getInfoById(@Param("id")Long id);

    Long selectMaxExchangeNo();

}
