package shop.alien.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import shop.alien.entity.store.StoreLabel;
import shop.alien.mapper.StoreLabelMapper;
import shop.alien.store.service.StoreLabelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 二期-门店标签 服务实现类
 *
 * @author ssk
 * @since 2024-12-05
 */
@Service
public class StoreLabelServiceImpl extends ServiceImpl<StoreLabelMapper, StoreLabel> implements StoreLabelService {

    /**
     * 获取门店标签
     *
     * @param storeId 门店Id
     * @return list
     */
    @Override
    public List<StoreLabel> getStoreLabel(Long storeId) {
        LambdaQueryWrapper<StoreLabel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(StoreLabel::getStoreId, storeId);
        return this.list(lambdaQueryWrapper);
    }
}
