package com.ruoyi.web.modules.goods.facade.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.modules.goodsservice.facade.IGoodsSnapshotFacade;
import com.ruoyi.web.modules.goods.mapper.BizGoodsServiceSnapshotMapper;

/**
 * 商品服务快照 Facade
 */
@Service
public class GoodsSnapshotFacadeImpl implements IGoodsSnapshotFacade
{
    @Autowired
    private BizGoodsServiceSnapshotMapper snapshotMapper;

    @Override
    public boolean existsGoodsRef(Long serviceId)
    {
        if (serviceId == null)
        {
            return false;
        }
        return snapshotMapper.existsGoodsRef(serviceId) > 0;
    }
}
