package com.njcn.advance.mapper.govern.voltage;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.advance.pojo.po.govern.voltage.SgEvent;
import com.njcn.advance.pojo.vo.govern.voltage.SgEventVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hongawen
 * @since 2024-02-29
 */
public interface SgEventMapper extends BaseMapper<SgEvent> {
    Page<SgEventVO> page(@Param("page") Page<Object> objectPage, @Param("ew") QueryWrapper<SgEventVO> sgEventVOQueryWrapper);

    List<SgEventVO> getAllEventData(@Param("incomingList") List<String> incomingLineIdList, @Param("beginDate") LocalDateTime beginDate, @Param("endDate") LocalDateTime endDate);

    List<SgEventVO> getEventDataByProductLineId(@Param("productId") String productId, @Param("beginDate") LocalDateTime beginDate, @Param("endDate") LocalDateTime endDate);
}
