package com.njcn.prepare.harmonic.mapper.mysql.line;

import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpEventDetailDPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2022/12/28  14:58【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Mapper
public interface RMpEventDetailDMapper extends MppBaseMapper<RMpEventDetailDPO> {

    int getSagTimes(@Param("lineId") String lineId, @Param("date") LocalDate date);

    int getInterruptTimes(@Param("lineId") String lineId, @Param("date") LocalDate date);

    Map<String, Object> getSumAndCount(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("lineIds") List<String> lineIds);

}