package com.unis.crk.hardware.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.unis.crk.hardware.entity.Hardware;
import com.unis.crk.hardware.entity.vo.UnithardwareVo;
import com.unis.crk.hardware.mapper.HardwareMapper;
import com.unis.crk.hardware.service.IHardwareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 硬件类型表 服务实现类
 * </p>
 *
 * @author ghh
 * @since 2021-09-15
 */
@Service
public class HardwareServiceImpl extends ServiceImpl<HardwareMapper, Hardware> implements IHardwareService {
    @Resource
    HardwareMapper hardwareMapper;
    @Override
    public List<Hardware> getDropDown() {
        QueryWrapper<Hardware> hardwareQueryWrapper = new QueryWrapper<>();
        hardwareQueryWrapper.select("HIID,Name");

        return  hardwareMapper.selectList(hardwareQueryWrapper);
    }
}