package com.jeesharp.business.modules.mall.mapper;

import com.jeesharp.business.modules.mall.entity.MallBrand;
import com.jeesharp.business.modules.mall.vo.MallBrandQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品品牌表 Mapper；自定义 SQL 写在同包 {@code xml/MallBrandMapper.xml}。
 *
 * @author jeesharp
 * @since 2026-05-07
 */
@Mapper
public interface MallBrandMapper extends BaseMapper<MallBrand, MallBrandQueryVO> {

    List<MallBrand> selectByIds(@Param("tenantCode") String tenantCode, @Param("ids") List<String> ids);

    /**
     * 查询指定租户下已启用的品牌（建品下拉等）。
     */
    List<MallBrand> selectEnabledByTenantCode(@Param("tenantCode") String tenantCode);
}
