package com.casic.missiles.modular.system.service.impl;

import com.casic.missiles.modular.system.dao.DeviceModelsMapper;
import com.casic.missiles.modular.system.model.DeviceModels;
import com.casic.missiles.modular.system.service.IDeviceModelsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 设备型号表 服务实现类
 * </p>
 *
 * @author lwh123
 * @since 2019-05-23
 */
@Service
public class DeviceModelsServiceImpl extends ServiceImpl<DeviceModelsMapper, DeviceModels> implements IDeviceModelsService {

    @Override
    public DeviceModels selectDeviceModelsBymodelName(String modelName) {
        DeviceModels deviceModels = new DeviceModels();
        deviceModels.setModelName(modelName);
        return this.baseMapper.selectOne(deviceModels);
    }
}
