package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.ta.pdd.entity.LottoConfigEntity;

@Mapper
public interface LottoConfigMapper extends BaseMapper<LottoConfigEntity> {

    @Select("SELECT * FROM `lotto_config` WHERE `tag2` = #{tag2} ORDER BY `id` ASC LIMIT 1;")
    LottoConfigEntity findByTag2(String tag2);
}
