package com.erp.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.warehouse.entity.StockAlertNotification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 库存预警通知配置Mapper
 */
@Mapper
public interface StockAlertNotificationMapper extends BaseMapper<StockAlertNotification> {

    @Select("SELECT * FROM stock_alert_notification WHERE tenant_id = #{tenantId} LIMIT 1")
    StockAlertNotification findByTenantId(@Param("tenantId") Long tenantId);
}
