package com.hzs.sale.wares.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.hzs.common.domain.sale.wares.BdWaresLabel;
import com.hzs.common.domain.system.config.BdLabel;

import com.hzs.common.domain.system.ext.BdLabelExt;
import com.hzs.sale.wares.mapper.BdWaresLabelMapper;
import com.hzs.sale.wares.service.IBdWaresLabelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品标签表 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2022-10-21
 */
@Service
public class BdWaresLabelServiceImpl extends ServiceImpl<BdWaresLabelMapper, BdWaresLabel> implements IBdWaresLabelService {

    @Override
    public void deleteByPkWares(Integer pkWares) {
        baseMapper.deleteByPkWares(pkWares);
    }

    /**
     * 根据商品查询 商品所属标签
     * @param waresLabel
     * @return
     */
    @Override
    public List<BdLabelExt> selectByList(BdWaresLabel waresLabel) {
        return  baseMapper.selectByList(waresLabel);
    }
}
