package shop.alien.mapper;

import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import shop.alien.entity.store.StoreDictionary;

/**
 * <p>
 * 门店字典表 新 Mapper 接口
 * </p>
 *
 * @author ssk
 * @since 2024-12-26
 */
public interface StoreDictionaryMapper extends BaseMapper<StoreDictionary> {

    @Select("SELECT max(dict_id) num " +
            "FROM store_dictionary " +
            "WHERE type_name = #{dictId} " +
            "ORDER BY dict_id DESC")
    Integer getMaxDictIdByTypeName(String dictId);

}
