package com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl.database;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.cico.nest.lcdp.boot.core.qxsd.infrastructure.gatewayimpl.database.dataobject.EventHisDO;
import com.cico.nest.lcdp.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zws
 * @date 2024/9/19
 */

@Mapper
public interface EventHisMapper extends BaseMapperX<EventHisDO> {

    default EventHisDO selectByEventId(String eventId){
        LambdaQueryWrapper<EventHisDO> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(EventHisDO::getEventId,eventId);
        return selectOne(queryWrapper);
    }

}
