package cn.ysk.cashier.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ysk.cashier.mybatis.mapper.TbShopShareMapper;
import cn.ysk.cashier.mybatis.entity.TbShopShare;
import cn.ysk.cashier.mybatis.service.TbShopShareService;
import org.springframework.stereotype.Service;
import org.apache.commons.lang3.StringUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.ysk.cashier.utils.PageUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
 * 店铺分享(TbShopShare)表服务实现类
 *
 * @author ww
 * @since 2024-11-06 15:47:37
 */
@Service("tbShopShareService")
public class TbShopShareServiceImpl extends ServiceImpl<TbShopShareMapper, TbShopShare> implements TbShopShareService {

    @Autowired
    private TbShopShareMapper tbShopSharemapper;

    @Override
    public TbShopShare getByShopId(Integer shopId) {
        QueryWrapper<TbShopShare> wrapper = new QueryWrapper<>();
        wrapper.eq("shop_id", shopId);
        return tbShopSharemapper.selectOne(wrapper);
    }
}

