package com.cool.store.dao.wallet;

import com.cool.store.entity.wallet.TempOpenWalletInfoDO;
import com.cool.store.mapper.wallet.TempOpenWalletInfoMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @Author suzhuhong
 * @Date 2025/11/20 10:03
 * @Version 1.0
 */
@Repository
@RequiredArgsConstructor
public class TempOpenWalletInfoDAO {

    @Resource
    private TempOpenWalletInfoMapper tempOpenWalletInfoMapper;

    /**
     * 根据门店编号查询临时开通钱包信息
     * @param StoreCode
     * @return
     */
    public TempOpenWalletInfoDO getTempOpenWalletInfoByStoreCode(String StoreCode) {
        if (StoreCode == null){
            return null;
        }
        return tempOpenWalletInfoMapper.getTempOpenWalletInfoByStoreCode(StoreCode);
    }


}
