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

import com.jeesharp.business.modules.mall.entity.MallTag;
import com.jeesharp.business.modules.mall.vo.MallTagQueryVO;
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
public interface MallTagMapper extends BaseMapper<MallTag, MallTagQueryVO> {

    /**
     * 建品可选：平台租户下已启用的商品标签（兼容历史 {@code tenant_code} 为空且 {@code tag_code} 以 TAG_ 开头）。
     */
    List<MallTag> selectEnabledByTenantCode(@Param("tenantCode") String tenantCode);
}