package cn.pluss.platform.merchantMemberCode.impl;

import cn.pluss.platform.entity.MerchantMemberCode;
import cn.pluss.platform.mapper.MerchantMemberCodeMapper;
import cn.pluss.platform.merchantMemberCode.MerchantMemberCodeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 动态商户会员卡生成记录 服务实现类
 * </p>
 *
 * @author crystal
 * @since 2022-06-07
 */
@Service
public class MerchantMemberCodeServiceImpl extends ServiceImpl<MerchantMemberCodeMapper, MerchantMemberCode> implements MerchantMemberCodeService {


    @Override
    public MerchantMemberCode getByCode(String code) {
        return baseMapper.getByCode(code);
    }

    @Override
    public void removeByCardNo(String cardNo) {
         baseMapper.removeByCardNo(cardNo);
    }
}
