package cn.pluss.platform.mercOrderToken.impl;

import cn.pluss.platform.entity.MercOrderToken;
import cn.pluss.platform.mapper.MercOrderTokenMapper;
import cn.pluss.platform.mercOrderToken.MercOrderTokenService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 设备订单token表 服务实现类
 * </p>
 *
 * @author bzg
 * @since 2022-03-23
 */
@Service
public class MercOrderTokenServiceImpl extends ServiceImpl<MercOrderTokenMapper, MercOrderToken> implements MercOrderTokenService {

    @Override
    public MercOrderToken getByToken(String tk) {
        QueryWrapper<MercOrderToken> queryWrapper = new QueryWrapper<MercOrderToken>().eq("token",tk);
        return baseMapper.selectOne(queryWrapper);
    }
}
