package com.ylx.massage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ylx.massage.domain.ProductSku;
import com.ylx.massage.mapper.ProductSkuMapper;
import com.ylx.massage.service.ProductSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * 商品SKU表(ProductSku)表服务实现类
 *
 * @author ylx
 * @since 2026-03-26
 */
@Service("productSkuService")
public class ProductSkuServiceImpl extends ServiceImpl<ProductSkuMapper, ProductSku> implements ProductSkuService {

    @Autowired
    private ProductSkuMapper productSkuMapper;


    @Override
    public BigDecimal findMinPriceByProductId(Long productId) {
        return productSkuMapper.findMinPriceByProductId(productId);
    }
}
