package com.jeesharp.business.modules.common.bizscene.mapper;

import com.jeesharp.business.modules.common.bizscene.entity.BizScene;
import com.jeesharp.business.modules.common.bizscene.vo.BizSceneQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务业态场景表 MyBatis Mapper；自定义 SQL 见同包 {@code xml/BizSceneMapper.xml}。
 *
 * @author jeesharp
 * @since 2026-07-03
 */
@Mapper
public interface BizSceneMapper extends BaseMapper<BizScene, BizSceneQueryVO> {

    BizScene findBySceneCode(@Param("sceneCode") String sceneCode, @Param("tenantId") String tenantId);

    List<BizScene> listEnabled(@Param("tenantId") String tenantId, @Param("capability") String capability);
}
