package com.bonus.sgzb.material.mapper;

import com.bonus.sgzb.material.domain.CheckDetailsInfo;
import com.bonus.sgzb.material.domain.PlanManagementDto;
import com.bonus.sgzb.material.domain.PlanManagementVO;
import com.bonus.sgzb.material.domain.PlanVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 计划管理mapper层
 * @Author ma_sh
 * @create 2024/4/9 9:35
 */
@Mapper
public interface PlanManagementMapper {

    /**
     * 新增plan_need_info表
     * @param dto
     * @return
     */
    int insertPlanNeedInfo(CheckDetailsInfo dto);

    /**
     * 新增plan_need_details
     * @param info
     * @return
     */
    int insertPlanNeedDetail(CheckDetailsInfo info);

    /**
     * 查询计划管理列表
     * @param dto
     * @return
     */
    List<PlanVO> selectPlanInfo(PlanManagementDto dto);

    /**
     * 新增plan_borrow_info
     * @param dto
     * @return
     */
    int insertPlanBorrow(PlanManagementDto dto);

    /**
     * 新增plan_borrow_details
     * @param checkDetailsList
     * @return
     */
    int insertPlanBorrowDetail(@Param("checkDetailsList") List<CheckDetailsInfo> checkDetailsList);

    /**
     * 获取计划借调管理列表
     * @param dto
     * @return
     */
    List<PlanManagementVO> selectBorrow(PlanManagementDto dto);
}
