package com.ruoyi.ibs.cmpm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ibs.cmpm.domain.dto.GridCmpmTransferListDTO;
import com.ruoyi.ibs.cmpm.domain.entity.GridCmpmTransfer;
import com.ruoyi.ibs.cmpm.domain.vo.GridCmpmTransferVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 吴凯程
 * @Date 2025/5/26
 **/
@Mapper
public interface GridCmpmTransferMapper extends BaseMapper<GridCmpmTransfer> {

    List<GridCmpmTransferVO> getGridCmpmTransferList(GridCmpmTransferListDTO gridCmpmTransferListDTO);

    List<GridCmpmTransferVO> getGridCmpmTransferHistoryList(GridCmpmTransferListDTO gridCmpmTransferListDTO);

    Long checkExistTransferCust(@Param("custKey") String custKey, @Param ("userName") String userName);

    Long batchInsert(@Param("gridCmpmTransferList") List<GridCmpmTransfer> gridCmpmTransferList);

}
