package com.sckw.product.dubbo;

import com.sckw.product.api.dubbo.GoodsStatisticsService;
import com.sckw.product.api.model.GoodsNumStsParam;
import com.sckw.product.service.KwpGoodsService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @desc: 商品统计相关dubbo接口实现
 * @author: yzc
 * @date: 2023-09-11 14:15
 */
@DubboService(group = "design", version = "1.0.0")
@Slf4j
@RequiredArgsConstructor
public class GoodsStatisticsServiceImpl implements GoodsStatisticsService {

    private final KwpGoodsService kwpGoodsService;


    @Override
    public Long getOnShelfGoodsNum(GoodsNumStsParam param) {
        return kwpGoodsService.getOnShelfGoodsNum(param);
    }

}
