package com.shining.cloud.mapper.information;

import java.util.Date;

import org.apache.ibatis.annotations.Param;

import com.njcn.pojo.commons.EventEigDetail;
import com.njcn.pojo.commons.EventInfoDetail;
import com.shining.cloud.pojo.information.EventInfo;
import com.shining.cloud.pojo.information.EventWaveDetail;

import tk.mybatis.mapper.common.Mapper;

/**
 * @description: 暂态消息详情Mapper
 * @author: denghuajun
 * @time: 2019-10-17 14:12:37
 **/

public interface EventInfoMapper extends Mapper<EventInfo> {
    EventInfoDetail eventDetailBaseInfo(@Param("eventMsgIndex") String eventMsgIndex);

    EventEigDetail eventDetailEigenvalue(@Param("eventDetailIndex") String eventDetailIndex);

    EventWaveDetail eventDetailWave(@Param("eventDetailIndex") String eventDetailIndex);

    int eventDetailEvaluate(@Param("eventDetailIndex") String eventDetailIndex, @Param("evaluate") int evaluate, @Param("userIndex") String userIndex);

    EventInfo getEventInfoByUserIndex(@Param("eventDetailIndex") String eventDetail_index);

    void insertEventInfoData(@Param("eventDetailIndex") String eventDetail_index, @Param("evaluate") int evaluate, @Param("userId") String user_id,
                             @Param("date") Date date, @Param("instantWavePath") String instantWavePath, @Param("rmsWavePath") String rmsWavePath, @Param("state") int state, @Param("reportPath") String reportPath);

    void updateEventInfoData(@Param("eventDetailIndex") String eventDetail_index, @Param("date") Date date, @Param("state") int state, @Param("userId") String userId, @Param("reportPath") String reportPath);

    EventInfoDetail eventDetailBaseInfoByIndex(@Param("eventdetailIndex") String eventdetailIndex);
}
