package com.czg.service.market.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.czg.market.entity.MkDistributionInvite;
import com.czg.market.service.MkDistributionInviteService;
import com.czg.service.market.mapper.MkDistributionInviteMapper;
import org.springframework.stereotype.Service;

/**
 * 全民股东邀请关系 服务层实现。
 *
 * @author ww
 * @since 2026-01-31
 */
@Service
public class MkDistributionInviteServiceImpl extends ServiceImpl<MkDistributionInviteMapper, MkDistributionInvite> implements MkDistributionInviteService{

    @Override
    public MkDistributionInvite getByShopIdAndShopUserId(Long shopId, Long shopUserId) {
        return getOne(query().eq(MkDistributionInvite::getShopId, shopId).eq(MkDistributionInvite::getShopUserId, shopUserId));
    }
}
