package com.xingxi.web.controller.master.product.service.impl;

import com.xingxi.master.product.service.impl.ProdServiceImpl;
import com.xingxi.web.controller.master.product.domain.ProdVo;
import com.xingxi.web.controller.master.product.mapper.ProdVoMapper;
import com.xingxi.web.controller.master.product.service.IProdVoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品Service业务层处理
 *
 * @author xingxi
 * @date 2025-03-06
 */
@Service
public class ProdVoServiceImpl extends ProdServiceImpl implements IProdVoService {
    @Resource
    private ProdVoMapper prodVoMapper;

    /**
     * 查询商品
     *
     * @param id 商品主键
     * @return 商品
     */
    @Override
    public ProdVo selectProdVoById(Long id) {
        return prodVoMapper.selectProdVoById(id);
    }

    /**
     * 查询商品列表
     *
     * @param prodVo 商品
     * @return 商品
     */
    @Override
    public List<ProdVo> selectProdVoList(ProdVo prodVo) {
        return prodVoMapper.selectProdVoList(prodVo);
    }
}
