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

import cn.ysk.cashier.dto.shop.TbShopUserQueryCriteria;
import cn.ysk.cashier.mybatis.service.TbMShopUserService;
import cn.ysk.cashier.pojo.shop.TbShopUser;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ysk.cashier.mybatis.mapper.TbMShopUserMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【tb_shop_user(商户储值会员)】的数据库操作Service实现
* @createDate 2024-07-06 11:46:46
*/
@Service
public class TbMShopUserServiceImpl extends ServiceImpl<TbMShopUserMapper, TbShopUser>
    implements TbMShopUserService {

    private final TbMShopUserMapper shopUserMapper;

    public TbMShopUserServiceImpl(TbMShopUserMapper shopUserMapper) {
        this.shopUserMapper = shopUserMapper;
    }

    @Override
    public Object summary(TbShopUserQueryCriteria criteria) {
        return shopUserMapper.selectUserSummary(criteria.getShopId(), criteria.getIsVip());
    }
}




