package com.bonus.canteen.core.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.merchant.entity.MercMerchant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MercMerchantMapper extends BaseMapper<MercMerchant> {
   @Select({"select merchant_id from merc_merchant where status = #{status}"})
   List<Long> selectAllMerchantId(@Param("status") Integer status);
}
