package com.jeequan.jeepay.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeequan.jeepay.db.entity.DeviceProvideConfig;
import com.jeequan.jeepay.service.mapper.DeviceProvideConfigMapper;
import org.springframework.stereotype.Service;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 设备厂商配置表 服务实现类
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-12-28
 */
@Service
public class DeviceProvideConfigService extends ServiceImpl<DeviceProvideConfigMapper, DeviceProvideConfig> {

    public DeviceProvideConfig getOneByAppId(String appId) {
        return baseMapper.selectOne(DeviceProvideConfig.gw().eq(DeviceProvideConfig::getAppId, appId));
    }
}
